Hello,
I've got an ultrawingrid with the FilterUIType = FilterUIType.FilterRow. I am trying to get to the next "visual" row programmaticly when I have a filter applied.
Whey I try to do something like this:
UltraGridRow nextRow = myGrid.ActiveRow.GetSibling(SiblingRow.Next);
I'm not getting the next visual row, just the next row id from the datatable (which may not be visible in the current view). Works great when I don't have filter values or when the grid is set in FilterUIType.Default mode.
Any suggestions?
Thanks,
Frank
I would propose to implement this overload, because this is already available for
row.HasNextSibling(true, true)
Works great! Thanks Mike!
Hi Frank,
I'm surprised there's no overload of GetSibling that accounts for the hidden state of the row. But you could do something like this:
private UltraGridRow GetNextVisibleRow(UltraGridRow row) { UltraGridRow nextVisibleRow = row.GetSibling(SiblingRow.Next); while (nextVisibleRow != null && nextVisibleRow.HiddenResolved == true) { nextVisibleRow = nextVisibleRow.GetSibling(SiblingRow.Next); } return nextVisibleRow; }