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.
Up arrow icon