Large dataset and winforms
3 answers
It is a good idea to filter the data in the database and only get the result set of (pre) filters. If this set is still large, use virtual mode , but also rethink your design - if you want to display as much data as you get in performance issues, you can also display a lot of data to the user.
+1
a source to share
You can bind a grid to a DataSet using the DataSource property and the BindingSource component. The form designer can take care of creating the BindingSource for you. BindingSource has a Filter property that lets you filter the content of the DataSet
EDIT: By the way, in data binding mode the DataGridView implicitly uses virtual mode, so you don't need to worry about too many rows in the grid
0
a source to share