How to filter a table on multiple columns without slowing down? For DataTable

Mansour_Dalir 2,036 Reputation points
2023-05-14T13:17:14.8633333+00:00

When my data is more than 10000 rows, the speed becomes very very slow.

What class should be used to filter the table. Thankful

Show me some links to solve this problem. Thanks again

Tags: vs2019- vb.net- DataGridView

Developer technologies Windows Forms
Developer technologies VB
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,521 Reputation points
    2023-05-17T01:46:36.1166667+00:00

    When my data is more than 10000 rows, the speed becomes very very slow.

    Use Virtual DGV :

    https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/implementing-virtual-mode-wf-datagridview-control?view=netframeworkdesktop-4.8

    https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/implementing-virtual-mode-jit-data-loading-in-the-datagrid?view=netframeworkdesktop-4.8

    10000 rows is nothing for a database (I used Virtual (ListView) and could display millions of rows very fast)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.