I checked following link:
http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-readonly-hidden-fields-in-edit-mode-radgrid.aspx#2292669
but when i used given code then i got following error-
Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'
Any solve it?
http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-readonly-hidden-fields-in-edit-mode-radgrid.aspx#2292669
but when i used given code then i got following error-
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) |
{ |
GridEditFormItem Data = (GridEditFormItem)e.Item; |
string strHiddenField=Data.ParentItem["ProductName"].Text; |
Hashtable ht = new Hashtable(); |
Data.ExtractValues(ht); |
ht.Add("ProductName", strHiddenField); |
} |
Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'
Any solve it?