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
close icon

ToolStripComboBoxEx Datasource

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?


1 Reply

AD Administrator Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon