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.

to force Upper case entry in a specified column

Thread ID:

Created:

Updated:

Platform:

Replies:

73397 May 5,2008 12:14 PM Jun 12,2008 05:40 AM Windows Forms 4
loading
Tags: GridControl
samuel
Asked On May 5, 2008 12:14 PM

hi,

i am using grid 4.102.0.62
I would like to force Upper case entry in a specified column.

Can you please let me know if this is possible.

Thanks!
Samuel.


Sri Rajan [Syncfusion]
Replied On May 9, 2008 07:48 PM

Hi Samuel,

Thank you for interest in Syncfusion products.

Here is the sample code which forces the Uppercase entry in a specific column.

void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
{
if (Char.IsLower(e.KeyChar) && this.gridControl1.CurrentCell.ColIndex==1)
{
SendKeys.Send(e.KeyChar.ToString().ToUpper());
e.Handled = true;
}
}


Please let me know if this helps.

Best Regards,
Srirajan



samuel
Replied On May 21, 2008 05:43 AM

hello,

Thank you for your help.

Samuel


samuel
Replied On June 12, 2008 04:54 AM

Hello,

Now i would like to force lower case entry in a specified column.
the previous solution is good only to force upper case entry.
Can you please let me know if this is possible.

Regards
Samuel


Sri Rajan [Syncfusion]
Replied On June 12, 2008 05:40 AM

Hi Samuel,

Thank you for your continued interest in Syncfusion products.

Here is the sample code which forces the lowercase entry in a specific column.

void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
{
if (Char.IsUpper(e.KeyChar) && this.gridControl1.CurrentCell.ColIndex == 1)
{
SendKeys.Send(e.KeyChar.ToString());
Console.WriteLine(e.KeyChar);
e.Handled = true;
}
}


Please let me know if this helps.

Best Regards,
Srirajan


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.

;