We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon