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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13342 |

    I want to set all of the visible rows to the computed height each time the grid is scrolled. I can get the index of the first visible row, and then change the next 10. If the grid is sorted or grouped, just add to the index of the firstvisbile row doesn’t work as they are no longer sequential. Any way to do this for sorted grids?

    Imported from legacy forums. Posted by Joseph (had 2116 views)

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.