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