There is a DataGridView:
The delete button should delete the row selected in the DataGridView. Question: which method should be called to delete the selected line?
There is a DataGridView:
The delete button should delete the row selected in the DataGridView. Question: which method should be called to delete the selected line?
Here is this:
private void btnDelete_Click(object sender, EventArgs e) { foreach (DataGridViewRow item in this.имя_вашего_gridView.SelectedRows) { имя_вашего_gridView.Rows.RemoveAt(item.Index); } } Source: https://ru.stackoverflow.com/questions/726782/
All Articles