Re: DataGridView + DataTable Speed
- From: "Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>
- Date: Mon, 14 Jan 2008 13:14:23 -0500
Hi,
You need to provide more details, like if this is a win or a web based app.
In any case 10K of rows are a little too much, you should reduce the number
of rows. That will improve the performance al ot.
--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
<azraiyl@xxxxxxxxx> wrote in message
news:4ee89d95-191f-420a-888e-837860e339f9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
When I create a DataTable and add 10000 rows my computer needs about
20ms. To delete 10000 rows it needs about 15ms.
When I connect the DataTable to a DataGridView it needs 3100ms to add
10000 rows and 6300ms to delete 10000 rows. That might be ok because
the control needs an update.
But when a disconnect the DataTable widht dgv.DataSoure = null it
needs 420ms to add 10000 rows and 2430ms to delete rows.
Can anyone explain what happened here and how I can modify the
DataTable so I get the performance when it is never bound to a
DataGridView?
Thanks in advance for any response
Azraiyl
.
- Follow-Ups:
- Re: DataGridView + DataTable Speed
- From: azraiyl
- Re: DataGridView + DataTable Speed
- References:
- DataGridView + DataTable Speed
- From: azraiyl
- DataGridView + DataTable Speed
- Prev by Date: Re: Custom Telnet Windows Service
- Next by Date: Re: Calling DLL function from C# and char** parameter type
- Previous by thread: Re: DataGridView + DataTable Speed
- Next by thread: Re: DataGridView + DataTable Speed
- Index(es):
Relevant Pages
|