Hi there,
I have a main grid and a parent grid inside the main grid in a nesteview Template. Is there any way to refer the parent GridDataItem in the child grid'd itemDataBound event ? Please find the code below for your reference. Any help would be appreciated
I have a main grid and a parent grid inside the main grid in a nesteview Template. Is there any way to refer the parent GridDataItem in the child grid'd itemDataBound event ? Please find the code below for your reference. Any help would be appreciated
<telerik:RadGridSkin="Office2007"runat="server"ID="rdGd1"ShowFooter="False" AllowSorting="True"AllowPaging="True" PageSize="10" GridLines="None"> <MasterTableViewDataKeyNames="assetNodeID"AutoGenerateColumns="False"Name="MainGrid" CommandItemDisplay="Top"HierarchyLoadMode="ServerOnDemand"> <CommandItemTemplate> <asp:LabelID="lblHeaderr"runat="server"></asp:Label> </CommandItemTemplate> <Columns> .... .... ..... </Columns> <NestedViewTemplate> <asp:Panel runat="server"ID="InnerContainer"> <telerik:RadGrid id="childGrid" runat="server" OnItemDataBound="childGrid_ItemDataBound"> <MasterTableView> <columns> ..... .... .... </columns> </MasterTableView> </telerik:RadGrid ></asp:Panel> </NestedViewTemplate> <ExpandCollapseColumnVisible="True"> </ExpandCollapseColumn> </MasterTableView> </telerik:RadGrid> ProtectedSuchildGrid_ItemDataBound(ByValsource AsObject, ByVale AsTelerik.Web.UI.GridCommandEventArgs) .... Here Here I need the dataItem details of the parent grid EndSub