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.
Unfortunately, activation email could not send to your email. Please try again.

Grid Control prevents dropdown updates

Thread ID:

Created:

Updated:

Platform:

Replies:

60657 May 9,2007 02:22 PM May 9,2007 04:39 PM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
David
Asked On May 9, 2007 02:22 PM

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

David
Replied On May 9, 2007 04:39 PM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;