HI there,
I need to access the radgrid fields after an update event.
I thought this I could use either GridDataItem or GridEditableItem.
However, the code below just returns   into UserName and UserID.
What am I doing wrong?
Thanks for any help
Richard
I need to access the radgrid fields after an update event.
I thought this I could use either GridDataItem or GridEditableItem.
However, the code below just returns   into UserName and UserID.
| protected void grdUsers_ItemUpdated(object source, GridUpdatedEventArgs e) |
| { |
| string userName; |
| string userID; |
| if (e.Item is GridEditableItem) |
| { |
| GridEditableItem gridEditDataItem = e.Item as GridEditableItem; |
| userName = gridEditDataItem["UserName"].Text; |
| userID = gridEditDataItem["UserID"].Text; |
| } |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem gridDataItem = e.Item as GridDataItem; |
| userName = gridDataItem["UserName"].Text; |
| userID = gridDataItem["UserID"].Text; |
| } |
| } |
What am I doing wrong?
Thanks for any help
Richard