Uppercasing Cell

Hi, Is there a property for a textboxcolumn that automatically uppercases the string of a cell ? Thanks Eddy POULLET Brussels

3 Replies

AD Administrator Syncfusion Team July 14, 2004 02:26 PM UTC

There is no property setting for a CellType = "TextBox" that does this. If you set the CellType to "OriginalTextBox" you can set the CharacterCasing style property. this.gridCashFlow[1, 1].CellType = "OriginalTextBox"; this.gridCashFlow[1, 1].CharacterCasing = CharacterCasing.Upper; The "OriginalTextBox" is derived from System.Windows.Forms.TextBox which supports this property, but the default "TextBox" celltype is derived from RichTextBox which does not.


EP Eddy Poullet July 16, 2004 11:13 AM UTC

Sorry, but in fact it is not a cell but a whole column in GridDataBoundGrid. Thanks, Eddy POULLET Brussels


AD Administrator Syncfusion Team July 16, 2004 11:37 AM UTC

Set the style as above on the GridBoundColumn object for that column. gbc.StyleInfo.CellType = "OriginalTextBox"; gbc.StyleInfo.CharacterCasing = CharacterCasing.Upper; where gbc is either grid.GridBoundColumns["somecol"] or grid.Binder.InternalColumns["somecol"] depending upon where you have or have not explicitly added GridBoundColumns to your grid.

Loader.
Up arrow icon