I have a grid with a master and detail table. When I insert a row in the detail table, I need to get a value from the master table (not the datakey value - one of the columns)
How can I do this ?
in the InsertCommand event I have this code
How can I do this ?
in the InsertCommand event I have this code
if ("ArtistTypeSWF".Equals(e.Item.OwnerTableView.Name)) -- check for the detail table |
{ |
Telerik.Web.UI.GridEditFormInsertItem editinsertitem = (Telerik.Web.UI.GridEditFormInsertItem)e.Item; |
GridDataItem dataitem = e.Item.OwnerTableView.ParentItem; |
DBObjects.ArtistType at = (DBObjects.ArtistType)dataitem.DataItem; ---- at is null, I need to get the data from one of the master table columns here |
} |