Re: DataGridView + DataTable Speed

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: A problem with using DataGridView control in an MFC CDialog
    ... UserControl class) and then embedded this user control into CWinFormsControl. ... without assigning any data source to the DataGridView and it doesn't depend ... I'm having a problem replicating your app. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Which file type to use to save data...
    ... Ryan Liu wrote: ... I have an app which uses datagridview. ... I was thinking to write to excel file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Which file type to use to save data...
    ... I have an app which uses datagridview. ... I also have struct which has 8 members(the same as the datagridview). ... then add this struct instance to a list. ... file if it is purely used as data repository at the backend? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Which file type to use to save data...
    ... I have an app which uses datagridview. ... I also have struct which has 8 members(the same as the datagridview). ... file if it is purely used as data repository at the backend? ...
    (microsoft.public.dotnet.languages.csharp)
  • Which file type to use to save data...
    ... I am new to C# so please bear me:). ... I have an app which uses datagridview. ... I also have struct which has 8 members(the same as the datagridview). ...
    (microsoft.public.dotnet.languages.csharp)