Validation of individual cell in datagrid
-
How to make validation of individual cell in a datagrid?
-
How to make validation of individual cell in a datagrid?
What do you want to validate? There is a certain amount of validation built into DataGrid controls. For example, grid columns bound to number type columns in the bound table will not allow letters (A-Z) etc. Validation is best handled at the table level when working with DataGrids. Add a handler for the table's OnRowChanging or OnColumnChanging events, check the 'proposed value' and set an error on the row if it does not pass your validation. The grid will respond to this. Steve
-
What do you want to validate? There is a certain amount of validation built into DataGrid controls. For example, grid columns bound to number type columns in the bound table will not allow letters (A-Z) etc. Validation is best handled at the table level when working with DataGrids. Add a handler for the table's OnRowChanging or OnColumnChanging events, check the 'proposed value' and set an error on the row if it does not pass your validation. The grid will respond to this. Steve
Mr. Steve, Thank you,can you mention a web sites where I can get some sample code on it. With regards, Suman
-
Mr. Steve, Thank you,can you mention a web sites where I can get some sample code on it. With regards, Suman
Are you using Visual Studio? The help explains this in detail. Steve