Home Forums WinForms controls Xceed Grid for WinForms Iterate thru visible rows when sorted or grouped Reply To: Iterate thru visible rows when sorted or grouped

User (Old forums)
Member
Post count: 23064

The gridcontrol has a method <b>GetSortedDataRows</b>, that returns a <b>ReadOnlyDataList</b>, with all the datarows in their sorted order.<code>myRows = myGrid.GetSortedDataRows(true); // true = recursive (in groups)
index = myRows.IndexOf(myGrid.FirstVisibleRow);
…</code>

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