Search code examples
c#devexpressxtragrid

Delete multiple rows from Grid


How do I delete multiple rows from XtraGrid ? I am using DevEx version 10.2. Any tutorials available ?


Solution

  • You can get the selected rows using the GetSelectedRows method (nicely named right?). Then you can just use a loop to go through the rows and delete the ones selected.

    Also, I found this "tutorial" which might be what you are looking for: http://www.devexpress.com/Support/Center/KB/p/A234.aspx

    It talks about the ColumnView.DeleteSelectedRows method, though it's only available in newer versions of XtraGrid.