是否可以在不使用复选框的情况下在网格视图中选择多行?
我的代码是这个
<asp:GridView ID="Grid_add_data" runat="server" AutoGenerateColumns="False" BackColor="White"
ShowFooter="True" CssClass="mGrid" meta:resourcekey="Grid_add_dataResource1">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkRows" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="From Time" meta:resourcekey="TemplateFieldResource1">
<ItemTemplate>
<asp:Label ID="Lbl_from_time" runat="server" Text='<%# Bind("FromTime") %>' meta:resourcekey="Lbl_from_timeResource1"></asp:Label></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="To Time" meta:resourcekey="TemplateFieldResource2">
<ItemTemplate>
<asp:Label ID="Lbl_to_time" runat="server" Text='<%# Bind("ToTime") %>' meta:resourcekey="Lbl_to_timeResource1"></asp:Label></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantum(MW)" meta:resourcekey="TemplateFieldResource3">
<ItemTemplate>
<asp:Label ID="Lbl_quantum" runat="server" Text='<%# Bind("Quantum") %>' meta:resourcekey="Lbl_quantumResource1"></asp:Label></ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle CssClass="GridViewSelectedRowStyle" VerticalAlign="Top" />
<FooterStyle CssClass="GridViewFooterStyle" />
<HeaderStyle BackColor="#6699FF" CssClass="GridViewHeaderStyle" Font-Bold="True"
ForeColor="White" VerticalAlign="Bottom" />
<PagerStyle CssClass="GridViewPagerStyle" />
<RowStyle CssClass="GridViewRowStyle" HorizontalAlign="Center" VerticalAlign="Top" />
<SelectedRowStyle CssClass="GridViewSelectedRowStyle" VerticalAlign="Top" />
</asp:GridView>