下面是我的 Telerik 嵌套网格的代码:
<telerik:RadGrid runat="server" ID="OrdersGrid" ShowFooter="True" AllowSorting="True"
EnableLinqExpressions="false" GridLines="None" OnInsertCommand="OrdersGrid_InsertCommand"
OnItemCommand="OrdersGrid_ItemCommand" OnItemDataBound="OrdersGrid_ItemDataBound"
Width="100%" HeaderStyle-CssClass="gridHeader" OnItemCreated="OrdersGrid_ItemCreated">
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<MasterTableView ShowHeader="true" AutoGenerateColumns="False" PageSize="7" HierarchyLoadMode="Client"
Font-Names="Verdana" Font-Size="12px" DataKeyNames="RIGHT_ID">
<NestedViewTemplate>
<telerik:RadGrid ID="brnchgrid" runat="server" OnItemDataBound="brnchgrid_ItemDataBound"
CssClass="gridHeader" Width="100%">
<MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="false" Font-Names="Verdana"
Font-Size="12px">
<Columns>
<telerik:GridBoundColumn HeaderText="Branch CODE" DataField="BRNCH_CODE" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Branch name" DataField="BRNCH_NAME" UniqueName="BRNCH_NAME">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="add" HeaderText="ADD" HeaderStyle-Width="50px">
<ItemTemplate>
<asp:CheckBox ID="chkadd" runat="server" />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="50px" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="50px" />
</telerik:GridTemplateColumn>
我想提供一个选项来检查brnchgrid内嵌套网格的标题中的所有内容。复选框列名为add。