Case Property

Returns or sets the case to use when editing or displaying column text.
Public Property Case As Case
public Case Case {get; set;}

The Case property specifies whether the column should display text in a specific case and change the case of the text being edited. This property actually changes the case of edited text; if you set Case to a non-zero value, any text you edit or enter will be stored in the database as either all uppercase or all lowercase. Note that while the text is displayed using the specified case, the changed case text is not committed back into the database unless a change is made to the value of the cell. Simply placing the cell into edit mode will not change the data to the displayed case.

Following code sets the Region column's Case to Upper so existing text is displayed as upper case as well as new input is converted to uppercase.

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

  Private Sub Button7_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button7.Click

      Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns("Region")
      column.Case = Infragistics.Win.UltraWinGrid.Case.Upper

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button7_Click(object sender, System.EventArgs e)

	UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns["Region"];
	column.Case = Infragistics.Win.UltraWinGrid.Case.Upper;


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