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.

GridList - binding context problem

Thread ID:





10735 Feb 11,2004 06:06 AM Feb 11,2004 07:07 AM Windows Forms 1
Tags: GridControl
Alexander Arlievsky
Asked On February 11, 2004 06:06 AM

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 07:07 AM

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.

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.