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.

ToolStripComboBoxEx Datasource

Thread ID:





79239 Jan 26,2009 02:24 PM Jan 27,2009 06:53 AM Windows Forms 1
Tags: Tools
John Slater
Asked On January 26, 2009 02:24 PM

I am trying to bind a Datasource to a ToolStripComboBoxEx as follows:
toolStripComboBoxEx1.ComboBox.BindingContext = BindingContext; toolStripComboBoxEx1.ComboBox.DataSource = bindingSource; toolStripComboBoxEx1.ComboBox.DisplayMember = "displaycolumn"; toolStripComboBoxEx1.ComboBox.ValueMember = "valumember";

After filling the datasource the rows do show up in the ComboBox, however; the initial Displayed Text in the ComboBox shows "System.Data.DataRowView" which I believe is the toolStripComboBoxEx1.ComboBox.SelectedItem.

What is the correct way to Bind to a ToolStripComboBox, without seeing this text?

Administrator [Syncfusion]
Replied On January 27, 2009 06:53 AM

Hi ,

Thank you for using Syncfusion products.

Please refer the sample below that demonstrates on binding ToolStripComboBox to BindingSource and let me know if this helps you.




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.