Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 119: {
Line 120: HyperLink editLink = (HyperLink)e.Item.FindControl("EditLink");
Line 121: editLink.Attributes["href"] = "javascript:void(0);";
Line 122: editLink.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["id3"], e.Item.ItemIndex);
Line 123: }
Member
36 Points
120 Posts
how to findControl in RadGrid hierarchical
Oct 27, 2016 04:27 AM|hoitm|LINK
i have radgrid with 4 level, at level 3 i have a linkbutton to view details, but i find control then error.
and aspx
when i run and error
plz help me, thanks in advance
All-Star
18815 Points
3831 Posts
Re: how to findControl in RadGrid hierarchical
Oct 28, 2016 05:40 AM|Nan Yu|LINK
Hi hoitm,
Please try below code :
Best Regards,
Nan Yu