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

Uppercasing Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

16395 Jul 14,2004 09:47 AM Jul 16,2004 07:37 AM Windows Forms 3
loading
Tags: GridControl
Eddy Poullet
Asked On July 14, 2004 09:47 AM

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 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.

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

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

CONFIRMATION

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.

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.

;