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
10
Dropdown List as a Templated Control in an UltraWebGrid
posted

First time using these tools.

I have two grids that I have an embedded drop down list .  I've used the InitializeRow call to format my dropdown lists with the SQL Data Bound Grid.  No problems.

But I have a requirement that If I change a dropdown value in Grid 2, I replace a corresponding Row in Grid 1 ... basically I do a swap, row for row.  Columns are identical.  However, because this does not trigger the InitializeRow on the post back, the rows actually do swap ... no problem, but it does not keep the state of my drop down values for the rows I swapped.

Image 1 shows that I should be swapping the player in the grid below (D'Antona Jamie) with (Tracy, Chad) in the grid above.  All this works by me performing a remove and insert at index.

 

The problem is in image 2, you can see that the dropdown list for the now moved (D'Antona, Jamie) is not showing the correct dropdown value.

Any ideas how to solve this issue?  What am I missing?