Home Forums WinForms controls Xceed Grid for WinForms No sort Reply To: No sort

User (Old forums)
Member
Post count: 23064

Instead of <b>Grid1.DataRows</b>, use <b>Grid1.GetSortedDataRows(True)</b>:<code>Dim rows As Xceed.Grid.Collections.ReadOnlyDataRowList = Grid1.GetSortedDataRows(True)
For i As Int32 = 0 To rows.Count – 1
rows(i).Cells(2).Value = i
Next</code>

Imported from legacy forums. Posted by Tommy (had 118 views)