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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Uppercasing Cell

Thread ID:





16395 Jul 14,2004 01:47 PM UTC Jul 16,2004 11:37 AM UTC WinForms 3
Tags: GridControl
Eddy Poullet
Asked On July 14, 2004 01:47 PM UTC

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

Administrator [Syncfusion]
Replied On 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.

Eddy Poullet
Replied On 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

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon