Home Forums WinForms controls Xceed Grid for WinForms Deleting a record Reply To: Deleting a record

User (Old forums)
Member
Post count: 23064

If you want to remove the currentRow :

     myGrid.CurrentRow.Remove()

If you want to remove all selected rows :

For Each rows As Xceed.Grid.DataRow In myGrid.DataRows
     If rows.Cells(“delete_checkbox”).Value Then rows.Remove()
Next

And don’t forget to apply the changes to the database!

Imported from legacy forums. Posted by Daniel (had 459 views)