如何在网格视图的标题中使用两个单选按钮来选择具有相同单选按钮的同一列中的所有相应记录?
这是我的代码:
<asp:TemplateField HeaderText="Page">
<HeaderTemplate>
<asp:RadioButton ID="RadioButton1" runat="server" Text="Select All Colour" />
<asp:RadioButton ID="RadioButton2" runat="server" Text="Select All B/W" />
</HeaderTemplate>
<ItemTemplate>
<asp:RadioButton ID="RadioButton3" runat="server" Text="Colour" />
<asp:RadioButton ID="RadioButton4" runat="server" Text="B/W" />
</ItemTemplate>
</asp:TemplateField>