PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Adding rows to DataGrid becomes slow

Reply

Adding rows to DataGrid becomes slow

 
Thread Tools Rate Thread
Old 02-06-2005, 12:51 PM   #1
=?Utf-8?B?VFQgKFRvbSBUZW1wZWxhZXJlKQ==?=
Guest
 
Posts: n/a
Default Adding rows to DataGrid becomes slow


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,
--
Tom Tempelaere.
  Reply With Quote
Old 02-06-2005, 02:48 PM   #2
=?Utf-8?B?VFQgKFRvbSBUZW1wZWxhZXJlKQ==?=
Guest
 
Posts: n/a
Default RE: Adding rows to DataGrid becomes slow

"TT (Tom Tempelaere)" wrote:

> 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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off