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
646
AJAX Selected Row Wrong
posted

Super simple setup:

One webgrid attached to an ObjectDataSource, which retrieves the data via Linq from a database. I enabled AJAX for the webgrid.

Now I want the user to select a row, click a button and work with the selected row on Postback. This works fine, as long as the user downt scroll down. When the user does scroll down and new rows are loaded via AJAX and the user selects one of those rows, the returned row on postback is wrong. It is always the last row in the table before the AJAX async callback.

 Is use myGrid.DisplayLayout.ActiveRow to retrieve the selected row.

Any tips on what I am doing wrong? Again: if the user selects one of the first rows, it works just fine.....