Infragistics(R) NetAdvantage(R) Windows Forms
Case Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : Case Enumeration

Used to specify the case of text in a column.

Syntax

Visual Basic (Declaration) 
Public Enum Case 
   Inherits System.Enum
C# 
public enum Case : System.Enum 

Members

MemberDescription
Lower Lower. All text appears as lowercase.
Unchanged Unchanged. Text appears as it was entered.
Upper Upper. All text appears as uppercase.

Example

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.

Visual BasicCopy Code
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
C#Copy Code
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;

}

See Also