Click on "Previous" or "Next" button doesn't reflect on listbox

306 views Asked by At

I have an form with one text field for populating table with only two columns (ID Autoincrement, Name).

I have a listbox which contains records from mentioned table. When I click on one row in listbox, in text field is populated appropriate value for name. But when I iterate through rows with created Next and Previous buttons, then my listbox is not refreshed. In fact, whole time is selected row that I select in start, with mouse click.

I want to refresh selected item in listbox, when I click on Next and Previous buttons.

Actually, when I move through rows with buttons, instead of selecting row with mouse click, then sometimes value in text field isn't same as selected item in listbox.

0

There are 0 answers