62,074
社区成员
发帖
与我相关
我的任务
分享
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:RadioButton ID="RadioButton1" runat="server" OnCheckedChanged="RadioButton1_CheckedChanged" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
RadioButton r = sender as RadioButton;
int index = ((GridViewRow)(r.NamingContainer)).RowIndex;
}