How to delete a row from datagrid using check box
-
Hi , I am Ravindra, presently working with DataGrid control. I added a checkbox column to my Datagrid control and like to delete rows which are checked. So please help , how to get a particular row when the datagrid checkbox is checked. This is the code I implemented foreach(DataGridItem dgi in DataGrid1.Items) { CheckBox cb=(CheckBox)dgi.FindControl("CheckBox1"); if(cb.Checked==true) { } } thanks in advance... -- Ravindra
-
Hi , I am Ravindra, presently working with DataGrid control. I added a checkbox column to my Datagrid control and like to delete rows which are checked. So please help , how to get a particular row when the datagrid checkbox is checked. This is the code I implemented foreach(DataGridItem dgi in DataGrid1.Items) { CheckBox cb=(CheckBox)dgi.FindControl("CheckBox1"); if(cb.Checked==true) { } } thanks in advance... -- Ravindra
do some modifications, like if ctype(dgi.findcontrol("...").checked then ........