I have a grid and the Insert/Update/Delete events are handled in the 'ItemCommand' event.
I'm now trying to get the dataItem row that was updated/inserted so that I can select it and then change it's BackColor.
Here is what I have now in the ItemCommand Event:
sender, GridCommandEventArgs e)
((e.CommandName == RadGrid.PerformInsertCommandName) || (e.CommandName == RadGrid.UpdateCommandName))
GridEditableItem saveableItem = (GridEditableItem)e.Item;
I trying to do something like: saveableItem.Selected = true;
but this way won't work because it's the editableItem vs the dataItem.
So my questions:
- Is this the right event to handle this? If not, what event should I call to handle this (from ItemCommand if possible)?
- How do I 'get' the inserted/updated item, so that I can 'do something' (Select, change BackColor, add Border, etc. after the action)?
Thank you in advance,