Hi Gopal,
This will not solve my problem.
we are restricting all the differtent columns types at a single place.
here we are using
gcd(Grid Column Descriptor)
gcd.Appearance.AnyRecordFieldCell.Format="### ### ##0";
gcd.Appearance.AnyRecordFieldCell.ValidateValue.Minimum
gcd.Appearance.AnyRecordFieldCell.ValidateValue.Maximum
Here I need to restrict entry for ","(Comma) and allow "."(Dot)
Thanks
Vinay
>Hi Vinay,
Try handling the TableControlCurrentCellKeyPress event of the gridGroupingControl to achieve this. Here is the code snippet.
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex);
if( style.TableCellIdentity.Column.MappingName == "PercentageColumn" )
{
if(e.Inner.KeyChar == '','')
e.Inner.Handled = true;
}
Let me know if this helps.
Regards,
Rajagopal