用模板列
<asp:TemplateField HeaderText="删除" ShowHeader="False">
  <ItemTemplate>
  <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" OnClientClick=" javascript:return confirm('你确认要删除吗?')"
  CommandName="Delete" Text="删除"></asp:LinkButton>
  </ItemTemplate>
 </asp:TemplateField>



然后:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
  {
  foreach (GridViewRow row in GridView1.Rows)
  {
  CheckBox CheckBox1 = (CheckBox)row.Cells[4].FindControl("CheckBox1");  
  //在这里处理你想要的数据
  }

  }

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-16
  • 2021-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案