VB.NET - Sort a DataGrid



Sorts controls bound to BindingSource

'Assembly: System.Windows.Forms
'Assembly: System.Windows.Forms.DataGrid.dll
'Assembly: System.Data
'Assembly: System.Xml

'Namespace: System
'Namespace: Microsoft.VisualBasic
'Namespace: System.Windows.Forms
'Namespace: System.Data

'Dim BindingSource1 AS BindingSource

BindingSource1.Sort = "sortingExpression" & " sortOrder"

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.