'Simple DevExpress ASPxGridView returns row from previous binding (JS and VB)

I have a simple GridView that gets data from SQL database on web page load (using custom callback and binding, it lists the info fine, i can change between pages if rows go beyond 15, and i can double click on any page and get the values with JS using the doubleclick event with GetRowValues and GetFocusedRowIndex, and then assigning the values to various ASPxTextBox controls, all works fine...

Until, i do another query/binding on same GridView and i click on the row, i get the old information of when the page loaded, on screen i see the new rows fine, but JS gets the old rows, it recognices the row number fine, but gets the old row from that position

Can anyone post an example of how can i get this to work?

All i need is to fill the grid with simple query, and then on client side, when double click on row, get the info and copy it to text boxes, the grid must be capable of executing different querys without refreshing all the pages content, it should act like its a normal search in a database...

Thanks for the help in advanced, ive searched for the answer everywhere and havent found it, various people have the same problem, but i cant figure out how can i get it resolved using JavaScript and VB



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source