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

GridList - binding context problem

Thread ID:





10735 Feb 11,2004 11:06 AM UTC Feb 11,2004 12:07 PM UTC WinForms 1
Tags: GridControl
Alexander Arlievsky
Asked On February 11, 2004 11:06 AM UTC

Hi, I placed ComboBoxExt (1) with GridList as drop down control.GridList is bound to datatable. In addition there is simple ComboBox (2) bound to the same datatable. When I change selection in (2) selection is also changed in (1). When I open drop/down in (1) (display GridList) correct line is selected. After I change selected line, selection is changed in (1) only, and after that moment changes done in (2) aren''t reflected in (1). Basically I need functionality of regular combo box, but to display several columns when combo is dropped down. Sample is attached. AutoCompletion_8806.zip

Administrator [Syncfusion]
Replied On February 11, 2004 12:07 PM UTC

Thank you for the sample. The gridlistcontrol is using a different bindingcontext than the listbox or the combobox (which uses the form''s bindingcontext). To make the gridlistcontrol use the same bindingcontext, you can add this code at the bottom of the form''s constructor. gridListControl1.BindingContext = this.BindingContext;


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon