Hi there,
I have a radgrid with a subgrid in it. I have enabled the client selection and its working fine for me. But here it allows the user to select both the main grid and the sub grid rows. I want to disable the subgrid row selection and only enable main grid row selection. Any idea to do this ? Your help would be highly appreciated. Below is the grid styling code for your reference
Thanks
Shafi
I have a radgrid with a subgrid in it. I have enabled the client selection and its working fine for me. But here it allows the user to select both the main grid and the sub grid rows. I want to disable the subgrid row selection and only enable main grid row selection. Any idea to do this ? Your help would be highly appreciated. Below is the grid styling code for your reference
<radG:RadGrid ID="radGdCopy" runat="server" AutoGenerateColumns="False" Skin="Office2007" Width="100%" UseEmbeddedScripts="false" GridLines="None" AllowPaging="True" AllowSorting="True" PageSize="10"> <MasterTableView CommandItemDisplay="None" Name="ParentGrid"> <CommandItemTemplate> <asp:Label ID="lblHeader" runat="server"></asp:Label> </CommandItemTemplate> <Columns> <radG:GridClientSelectColumn UniqueName="ClientSelectColumn" > <HeaderStyle HorizontalAlign="Center" Width="23px" /> </radG:GridClientSelectColumn> <radG:GridBoundColumn DataField="ID" UniqueName="ID" Visible="False"> </radG:GridBoundColumn> <radG:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name"> </radG:GridBoundColumn> </Columns> <DetailTables> <radG:GridTableView ShowHeadersWhenNoRecords="False" GridLines="None" runat="server" Name="ChildGrid" AllowSorting="True"> <Columns> <radG:GridBoundColumn DataField="subID" HeaderText="subID" UniqueName="subID"> </radG:GridBoundColumn> <radG:GridBoundColumn DataField="subName" HeaderText="subName" UniqueName="subName"> </radG:GridBoundColumn> </Columns> </radG:GridTableView> </DetailTables> <%-- <RowIndicatorColumn> <HeaderStyle Width="20px" /> </RowIndicatorColumn>--%> <ExpandCollapseColumn> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> <ClientSettings EnableClientKeyValues="true" ApplyStylesOnClient="true"> <Selecting AllowRowSelect="True" /> <ClientEvents OnRowSelected="Copy_RowSelected" OnGridCreated="Copy_GridCreated" /> </ClientSettings> </radG:RadGrid>Thanks
Shafi