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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ToolStripComboBoxEx Datasource

Thread ID:

Created:

Updated:

Platform:

Replies:

79239 Jan 26,2009 07:24 PM UTC Jan 27,2009 11:53 AM UTC WinForms 1
loading
Tags: Tools
John Slater
Asked On January 26, 2009 07:24 PM UTC

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 11:53 AM UTC

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.

http://websamples.syncfusion.com/samples/Tools.Windows/F79239/Tools-WF_ToolStripEx_ComboBox.zip

Regards,
Jaya



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.

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

;