Version

ReadOnlyCellAppearance Property

Determines the formatting attributes that will be applied to the cells that are read-only.
Syntax
'Declaration
 
Public Property ReadOnlyCellAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ReadOnlyCellAppearance {get; set;}
Example
The following code sets read-only appearance and makes a cell read-only. The read-only cell will be displayed using this appearance.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' ReadOnlyCellAppearance will apply to cells that are read-only. A cell can be read-only
        ' by means of datasource not allowing edits on the associated column or by the CellActivation 
        ' property settings.
        Me.ultraGrid1.DisplayLayout.Override.ReadOnlyCellAppearance.BackColor = Color.Blue
        Me.ultraGrid1.DisplayLayout.Override.ReadOnlyCellAppearance.ForeColor = Color.Yellow

        ' Make the cell read-only. You will notice that the above appearance will apply
        ' to the cell.
        Me.ultraGrid1.Rows(2).Cells(2).Activation = Activation.ActivateOnly
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// ReadOnlyCellAppearance will apply to cells that are read-only. A cell can be read-only
			// by means of datasource not allowing edits on the associated column or by the CellActivation 
			// property settings.
			this.ultraGrid1.DisplayLayout.Override.ReadOnlyCellAppearance.BackColor = Color.Blue;
			this.ultraGrid1.DisplayLayout.Override.ReadOnlyCellAppearance.ForeColor = Color.Yellow;

			// Make the cell read-only. You will notice that the above appearance will apply
			// to the cell.
			this.ultraGrid1.Rows[2].Cells[2].Activation = Activation.ActivateOnly;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also