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

to force Upper case entry in a specified column

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.


4 Replies

SR Sri Rajan Syncfusion Team May 9, 2008 11:48 PM UTC

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




SA samuel May 21, 2008 09:43 AM UTC

hello,

Thank you for your help.

Samuel



SA samuel June 12, 2008 08:54 AM UTC

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



SR Sri Rajan Syncfusion Team June 12, 2008 09:40 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon