Hi
Same grid as last post.
When we hit the add row button (from the template at the bottom of the grid) a nice new row appears with no data. Trouble is, if I hit the update button (nothing to do with the grid) it allows the row to be empty.
How do I trap for empty rows before the update?
Thanks
Jerry
Hi Jerry,
I would probably use the BeforeRowUpdate event and examine the cell values. You can cancel the event if there is nothing in it.
Mike
Thanks. That clearly works OK. But, when I cancel the event it removes the row. Is there a way of cancelling the update event but leave the row on the grid with any data so far populated, e.g. if user has just missed one field this would save them having to re-enter all the data...
Take a look at the BeforeRowUpdateCancelAction property.
Mike,
I am having the same problem but I cannot seem to find the BeforeRowUpdateCancelAction property in the documentation nor via the object browser within VS. We are using 2009.2 of the grid in VB.
Where is this property located?
Thanks,
Dana
Hi Dana,
Sorry, there's no "Before", it just "RowUpdateCancelAction".
this.ultraGrid1.RowUpdateCancelAction