I am using a GridView and ListBox in a page. Gridview contains the data from database bind as DataSource. When clicking on an item in GridView the list box displays the sub items.
My problem occurs when there is a scrollbar in GridView. When I select the last item from the grid view, the sub items are displayed and the scrollbar is going to up. I can’t see which item is selected.
SOLUTION:
Place a hidden field as
and in the
divadd a functionJavaScript:
This solved my problem.