Dear all,
In the ultragrid, If there is a row, how to disallow the cells to be empty and must follow the data type such as int or decimal?? If invalid, show the messages?? How to do??
Please help!!
The grid handles the cell's data type automatically, i.e., if the underlying data column's type is int, the grid will enforce basic validation when the user exits edit mode, by showing an error message when the user enters (for example) "a" into the cell.
Whether a cell can be left empty is usually determined by the DataColumn's AllowDBNull property, and the grid automatically handles that as well. You can also set the column's Nullable property to 'Disallow' to enforce this independently of the data source.
The grid will enforce basic validation ... by showing error message --> How to capture this error and show the error message?? Is there any event that need to set to the ultragrid???