Adding rows to DataGrid becomes slow

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

I have a DataGrid bound to a DataTable. I use the grid as a logging table.
The problem is that when there are a lot of rows in the data table (say more
than 7500) adding new rows to it becomes very slow.

Is there a different strategy I could follow to overcome the performance
problem with adding rows to a DataTable bound to a DataGrid?

Thanks and kind regards,
 
TT (Tom Tempelaere) said:
Hi there,

I have a DataGrid bound to a DataTable. I use the grid as a logging table.
The problem is that when there are a lot of rows in the data table (say more
than 7500) adding new rows to it becomes very slow.

Is there a different strategy I could follow to overcome the performance
problem with adding rows to a DataTable bound to a DataGrid?

BeginLoadData + EndLoadData on the DataTable does the trick.

TT
 
Back
Top