Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Data Validation

New
First Name 
Last Name 
Age 
E-mail
 
Arrival Date 
EditAndrewFuller42andrew.fuller@devexpress.com10/22/2017
EditNancyDavolio34nancy.davolio@devexpress.com11/27/2017
EditMargaretPeackop48margaret.peackop.devexpress.com11/29/2017
EditRobertK29robert.king@devexpress.com11/28/2017
EditAnneDodsworth17anne.dodsworth@devexpress.com11/27/2017

The ASPxGridView allows you to manually validate the edited row and display errors for invalid fields.

This demo illustrates ways in which you can include data validation in your next ASP.NET project. Validation is implemented in the RowValidating event handler.

To indicate rows with invalid data, the HtmlRowPrepared event is handled. This event is raised for each data row when the corresponding row within the table has been created. In this sample, rows with invalid data are colored in red.

Click the ‘Edit’ link to display the details of this row, with an error icon indicating the invalid field. Hover your mouse over the icon to display a hint along with a description of the error.