Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
How to dynamically set UltraGridState?
posted

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

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

Reply Children
No Data