my edit form type uses Template.
when i click on Add New Item the template opens in insert mode,
in each item i have a linkbutton templatecolumn called "Edit" when click on it i run the code below to open the template in edit mode.
If the Edit link is clicked while the template is opened in Insert Mode i get error.
Any idea how to avoid this problem?
thanks in advance
when i click on Add New Item the template opens in insert mode,
in each item i have a linkbutton templatecolumn called "Edit" when click on it i run the code below to open the template in edit mode.
GridDataItem gdi = (GridDataItem)LinkButton1.Parent.Parent;
RadGrid1.Items[gdi.ItemIndex].Edit =
true
;
RadGrid1.Rebind();
If the Edit link is clicked while the template is opened in Insert Mode i get error.
Any idea how to avoid this problem?
thanks in advance