|
I populated datagridview with data. one column is checkbox for selecting row,another is a textbox column and finally a combobox when i am trying to delete more than one row by checking checkbox using the following code, it is not recognizing the row that is checked,nothing is happening.In the delete button click ,i wrote the following code if (dataGridView2.SelectedRows.Count==dataGridView2.Rows.Count) { dataGridView2.Rows.Clear(); } foreach (DataGridViewRow row in dataGridView2.SelectedRows) { dataGridView2.Rows.Remove(row); Any help please....
|