Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, sorry for my question, I'm newbie in Windows Forms (using C#). I have large database (~50 000 rows), Windows Form with AdvancedDataGridView (I need filter like Excel). Also I use Virtual Mode to load fast.
But it works only for initializing DataGridView. When I want to filter IDs, click on drop-down button FIRST TIME and... program freezes about 6 seconds, then works normal. When I want filter IDs again it works fast.
How can I speed up filter initializing? My base will grow up, workers will use filters very often.
Thanks.

What I have tried:

Try to use standart DataGridView - too slow
Posted
Updated 15-Feb-17 18:55pm
Comments
Nirav Prabtani 15-Feb-17 2:55am    
You can find many of third party controls to fulfill your need.
If you are dealing with bulk of records them i am suggesting you to use SQL paging instead of filling all data at a time.

You can use flex grid, obout, telerik, dev express many more....
Member 12440363 15-Feb-17 3:05am    
Yes, I use MS SQL.
>You can use flex grid, obout, telerik, dev express many more....
Which of these tools are best to use?
Richard MacCutchan 15-Feb-17 3:39am    
Do not read all the records into the DataGridView, as that will just slow it down. Use the filter to read from the data base in the first place.

1 solution

Read the records from database once in DataSet, then you can use LINQ query or DataView's RowFilter to filter out and then filtered result again bind to Grid.
dataView.RowFilter = "FILTER QUERY here.."
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900