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

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 10:26 AM

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 07:13 AM

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 07:37 AM

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