Deleting rows from a datagridview

  • Thread starter Thread starter EricW
  • Start date Start date
E

EricW

Hi,

If I delete 700 rows in an Excel sheet it takes about half a second, but
when I do the same with my databound datagridview, it takes up to 2 minutes.

Isn't there a faster way to delete selected rows in a datagridview?

My code:

For Each rw In Me.dgvImport.SelectedRows
rw.DataBoundItem.delete()
Next

rg,
Eric
 
Delete from DataSource and refresh DataSource?
Not sure how much faster it will be.

MH
 
Back
Top