Currently I have an UltraWinGrid with a rowFilter as the first row. Is there a way to get the UltraWinGrid to recognize the first row underneath the rowFilter as the UltraGridState.FirstRow instead of the rowFilter. I'm wanting to use this state information to allow another user control know when it has reached the top and bottom of the list
Hi,
No, there's no way to do this with the CurrentState. The CurrentState is really a keyboard state. It is used by the KeyActionMappings to determine the state of the grid when responding to the keyboard. So it has to return the way it does so that you can navigate to and from the FilterRow via the keyboard.
If you have a flat grid (no child bands), you can probably achieve what you want very simply using the grid.ActiveRow.Index. This will be a bit more complicated if you have rows that are hidden or filtered out, though, since you will have to ignore those rows.
Thank you. I am iterating throught the grid.Rows and checking the IsFilteredOut property until I find the first row that is not filtered out and using that as my first row's index. I then compare this index to grid.ActiveRow.Index. If they are equal then I have reached the top of my filtered list and should prevent the user from continuing in that direction. I did the same for checking when I reached the bottom of the list.
How do I mark this thread as [SOLVED]?