解决方案是这样的:
  如果直接在里面加入CheckBox控件,不太可能,绑定很烦,所以建议使用绑定列模式,在设计绑定列中,加入CheckBox控件,然后对绑定的数据进行后期数据绑定,就可以解决了。

解决方案 »

  1.   

    are you using AutoPostBack on the CheckBox? if yes, you can get the item index in the event handler and delete the row and rebind your datagrid, otherwise, doforeach (DataGridItem dgi in DataGrid1.Items)
    {
       CheckBox cb = (CheckBox)dgi.FindControl("YourCheckBoxID");
       if (cb.Checked)
       {
            //do you deletion here
       }
    }
      

  2.   

    在一列中加入CHECKBOX控件可以向DataGrid中加入模板列,在加入CheckBox
      

  3.   

    同意思归的看法我所做的工程中DataGrid删除基本就是用这种方法的,没有问题的