How to display custom error message on EditForm Template of AspXGrid?

6.9k Views Asked by At

DevExpress AspXGrid has a cool editform template that you can use it several ui style as popup form or inline form betwwen grid rows etc..

When you unimplement Update Event of grid and if you allow grid to editing from settings, it shows the EditForm, but when you fire update button at this state, it shows a cool Error Message like "Specified method is not supported"..

I want to write some custom message in the same place of that message.

Anyone knows how can i do?

Thanks a lot.

1

There are 1 best solutions below

1
On BEST ANSWER

Use the ASPxDataValidationEventArgs.RowError property to specify the error text displayed within the Error Row. This row is automatically displayed below the Edit Form if the RowError property is set to a not empty string.

Please, also take a look at the GridEditing/Validation demo module and ASPxGridView documentation.