I have a detached datagrid that gets populated through a SQL statement but then gets manipulated by the end user who will changes some of the column values and delete some rows. In the end I need to sort that datagrid by 3 of the columns before processing the data in it.
Nevermind just figured it out. For those interested its as follows:
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(7), ComponentModel.ListSortDirection.Ascending)
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(26), ComponentModel.ListSortDirection.Ascending)
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(25), ComponentModel.ListSortDirection.Ascending)
Nevermind just figured it out. For those interested its as follows:
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(7), ComponentModel.ListSortDirection.Ascending)
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(26), ComponentModel.ListSortDirection.Ascending)
Me.grdPurchasing.Sort(Me.grdPurchasing.Columns(25), ComponentModel.ListSortDirection.Ascending)