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
455
How to use code to control ActiveRow selection in a grid?
posted

I am working on a project that when a user types in the text box, the content in a grid automatically filter content according to the content typed by the user (This has been relized). However, now I want to do the following. When a user presses "Up" or "Down", the active row in the grid goes up or down. Please be noted that when a user presses "Up" or "Down", there might be no rows in the grid, because the filter has been applied.

Thanks.

Parents
No Data
Reply
  • 455
    posted

    I tried to user Grid.ActiveRow = Grid.Row(Grid.ActiveRow.Index + 1). However, the index of the Grid.Row seems include all the rows, including the rows that have been filtered out. Therefore, this way doesn't work. Please help.

Children