I am using RadGridView and using CellValidating event to handle errors and display error message:
private
static
void
GridViewCellValidating(
object
sender, GridViewCellValidatingEventArgs e)
{
var validationText =
string
.Empty;
var isValid =
true
;
var cell = e.Cell;
//Some business logic here for to set isValid and validationText based on which column the cell belongs to
e.ErrorMessage = validationText;
e.IsValid = isValid;
}
The event gets fired when I move away from cell, and is fired for the same cell only from which user moved out.
I need this event to be fired for all cells in the recently added row as soon as user clicks outside the grid so that all the cell contents are validated.
Currently since all cells doesn't get validated, user is able to invoke final 'Save' functionality since there is no validation error message.
Looking forward for your suggestion
Regards,
Abhilash