Home Products Downloads Support About

How to Sort DataGridView data? 

Article Information 

Article relates to VIBlend DataGridView for WinForms 

How To 

Sort DataGrid’s data. 


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) and set the SortMode property of the BoundFields. 


3. After you bind the data grid, call the SortBy method in order to sort the DataGrid's data. The SortBy method can be found in the ColumnsHierarchy and RowsHierarchy classes. Therefore you can apply sorting either by rows or by columns. The following code code snippet sorts the data grid’s RowsHierarchy in ascending sort order.  


VIBlend WinForms DataGrid Sorting

VIBlend Knowledge Base Home
Copyright © VIBlend  
Terms of Use | Privacy Policy
Silverlight Controls WinForms Controls Knowledge Base About Us
Silvelright DataGrid Ribbon Interface Technical Support Blog
Silverlight Editors WinForms DataGrid
Silverlight Ribbon Bar Calendar Downloads Forum
Navigation Bars Navigation Bars    
Menu & ContextMenu TreeView Report a bug Client Login
ComboBox & ListBox Tab Control    
Silverlight Pivot Table WinForms Pivot Grid Request a feature