We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grid Control prevents dropdown updates

I have an issue when I use the grid control in my pages that also contain an asp:dropdownlist. If I have the grid on the page, and change the value in the dropdown list, it will not save to the new value I selected. I take the grid off and it updates just fine. Any suggestions as to why I'm experiencing this behavior?

Note: the dropdownlist is NOT in the grid control.

I'm using C#, .Net 2.0, VS 2005 and release 5.102.00.37

Thanks

1 Reply

DA David May 9, 2007 08:39 PM UTC

Afternoon,
I fixed the issue. I placed the datagrid binding in a separate routine and used the Page_Init to determine when to refresh the data. All is well now. I also placed the grid control in a callback panel and checked this.Page.IsPostBack == false && this.Page.IsCallback == false. Now when I select a new item on the dropdownlist, it will properly save to the database instead of defaulting to the first entry in the list.

I know, clear as mud but it works now.

Loader.
Live Chat Icon For mobile
Up arrow icon