How to filter DataGridView data?
|
Article Information
|
Article relates to VIBlend DataGridView for WinForms
|
How To
|
Filter DataGrid’s data.
|
Solution
|
To achieve this, follow these steps:
|
1. Create a new instance of the vDataGridView via drag and drop from the toolbox or create it programmatically.
|
2. Bind the data grid to the Northwind's Invoices table( NWind.mdb is shipped with the product's installation)
|
|
3. Create a filter group which contains two string filters.
|
|
4. Create a new HierarchyItemFilter and set its Filter property to the filter group.
|
|
5. Apply the filter to the RowHierarchy’s Filters collection
|
|
|