How I can get DataRowState of WebDataGrid row? In old UltraWeb Grid I can do it by row.DataChanged
protected DataRowState GetGridRowState(GridRecord row) {DataRowState state = DataRowState.Unchanged; if (DataChanged.Added == row.DataChanged) state = DataRowState.Added; return state; }
Has this changed since this post? If we need to handle our own CRUD operations it can become rather painful to have this limitation placed on us just for using the WebDataGrid.
For instance, I have business objects that have child records loaded into a grid. When I save the record, I want to control the save operation, ideally in a single method responding to the postback. With this ridiculous limitation, I have to save the parent if it's new in order to get the Id to save the child objects, or have multiple events adding records to my parent object and then eventually saving it - whereas before I could handle that in a single method or event.
I don't like having my architecture dictated to me in such a way.
Hi Anton,
This particular functionality is not ported over in this way. You should handle the server side events for editing core to get the updated, deleted, or added rows.
regards,David Young