Home Forums WinForms controls Xceed Grid for WinForms How do I delete multiple rows Reply To: How do I delete multiple rows

User (Old forums)
Member
Post count: 23064

Pretty darn close Tommy!

Here’s your VB.Net code (if you still required it)

Dim myRow As Xceed.Grid.DataRow
For Each myRow In grdControl1.SelectedRows
grdControl1.DataRows.Remove(myRow)
Next

Or if you prefer more compact code you could also have done this:

For Each myRow as Xceed.Grid.DataRow In grdControl1.SelectedRows
grdControl1.DataRows.Remove(myRow)
Next

-LK

Imported from legacy forums. Posted by Curtis (had 696 views)