Hi, I have a GridView.
when I make a change in a cell of one row, and then I select to add a new row the event grid_RowValidating its fier but when I do e.Row.IsModified I always get FALSE.
Only if I press in other row before I press to add a new row to the grid.
private void grid_RowValidating(object sender, RowValidatingEventArgs e)
{
if (e.Row == null) return;
if (!e.Row.IsModified) return;
}
the way to reproduce this is.
- Edit a cell from the gridView.
- Click to add new Row
e.Row.Index indicate that its checking the row I just edited where i change some value, so it should show me that there is a change.
I also tried adding the event RowChanged but didnt work
private void grdPirteyMenahel_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
{
grid.EndEdit();
}