Version

CellDisplayStyle Property (UltraGridColumn)

CellDisplayStyle specifies how the cells get rendered. You can use this property to speed up rendering of cells by setting it to FormattedText or PlainText. Default is resolved to FullEditorDisplay.
Syntax
'Declaration
 
Public Property CellDisplayStyle As CellDisplayStyle
public CellDisplayStyle CellDisplayStyle {get; set;}
Remarks

CellDisplayStyle specifies how the cells get rendered. You can use this property to speed up rendering of cells by setting it to FormattedText or PlainText. Default is resolved to FullEditorDisplay.

FormattedText draws the formatted cell value in the cells. PlainText draws the cell value converted to text withought applying any formatting. It simply calls ToString on the cell value and draws the resulting text in the cell.FullEditorDisplay embedds an embeddable ui element which draws the cell value as well as draws any edit elements like buttons. This is a bit more performance intensive than PlainText and FormattedText. The advantage of using FullEditorDisplay which is the default is that any edit elements that the editor may render in cells do not get rendered until the cell enters the edit mode.

Example
Following code sets the CellDisplayStyle on various objects.

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

    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        ' CellDisplayStyle can be set on the layout's Override in which case it
        ' will effect the whole grid.
        e.Layout.Override.CellDisplayStyle = CellDisplayStyle.PlainText

        ' It can be set on the override of a band in which case it will effect
        ' only that band.
        e.Layout.Bands(0).Override.CellDisplayStyle = CellDisplayStyle.PlainText

        ' It can also be set on a column in which case it will effect only that 
        ' column.
        e.Layout.Bands(0).Columns(0).CellDisplayStyle = CellDisplayStyle.FullEditorDisplay

        ' It can be also set on an individual cell.
        Dim cell As UltraGridCell = e.Layout.Grid.Rows(0).Cells(0)
        cell.CellDisplayStyle = CellDisplayStyle.FullEditorDisplay
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// CellDisplayStyle can be set on the layout's Override in which case it
			// will effect the whole grid.
			e.Layout.Override.CellDisplayStyle = CellDisplayStyle.PlainText;

			// It can be set on the override of a band in which case it will effect
			// only that band.
			e.Layout.Bands[0].Override.CellDisplayStyle = CellDisplayStyle.PlainText;

			// It can also be set on a column in which case it will effect only that 
			// column.
			e.Layout.Bands[0].Columns[0].CellDisplayStyle = CellDisplayStyle.FullEditorDisplay;

			// It can be also set on an individual cell.
			UltraGridCell cell = e.Layout.Grid.Rows[0].Cells[0];
			cell.CellDisplayStyle = CellDisplayStyle.FullEditorDisplay;
		}
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