Sort DataGridView in Run Time
Below Code Will Helpful to Sort DataGridView at Run Time.
Dim MyDataView As New DataView
MyDataView = ds.Tables(0).DefaultView 'ds is dataset u need to bind first
MyDataView.Sort = "SortColumnName"
'SortColumnName is the name of the columnName of DataGridView you want to
Sort.
DGVFindList.DataSource = MyDataView 'DGVFindList is GridView Name
Regards
Santosh
