Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4695
Disallow the field to be empty and check validation
posted

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!!

 

 

Parents
  • 69832
    Offline posted

    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.

Reply Children