Grid Uppercase

Is there a way to convert all characters entered into a GridControl to Uppercase? Also how can I limit the character set to say "S", "B"?

2 Replies

ST stanleyj Syncfusion Team December 15, 2005 03:09 PM UTC

Hi Narendra, By setting the CellType as OriginalTextBox and CharacterCasing to Upper all entries to the grid will be upper cased. To check for certain character entries try canceling the action in the CurrentCellValidateString handler with a Condition check for those character. CurrentCellValidateString is raised for each and every entries that are made in the grid and the e.Text holds the text of the cell. style.CellType = "OriginalTextBox"; Style.CharacterCasing = CharacterCasing.Upper; Best regards, Stanley


AD Administrator Syncfusion Team December 27, 2005 03:38 PM UTC

Thanks Stanley, this works perfectly.

Loader.
Up arrow icon