0

Using Visual Studio 2008, I have a form with a datagridview. I want to use a button called BTNDelete and I need help on deleting the selected row from the datagrid then update the datatable.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by twalton42
0

Use DataGridView1.Rows.RemoveAt(DataGridView1.SelectedRows(0).Index) and remove the allow multiples rows selection from the properties of the datagrid. That should do it.

0

Use DataGridView1.Rows.RemoveAt(DataGridView1.SelectedRows(0).Index) and remove the allow multiples rows selection from the properties of the datagrid. That should do it.

Cool I tried it and had to motify just a little and it works thank you very much

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.