Adding rows to DataGrid becomes slow

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,
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top