HI. guy..
below is my repro for bind datatable to toolstrip combox component, it work well.
maybe would give you something.
this.dataSet1.DataTable1.AddDataTable1Row("xin1");
this.dataSet1.DataTable1.AddDataTable1Row("xine2");
this.dataSet1.DataTable1.AddDataTable1Row("xine3");
this.dataSet1.DataTable1.AddDataTable1Row("xine4");
this.dataSet1.DataTable1.AddDataTable1Row("xine5");
this.toolStripComboBox1.ComboBox.DataSource = this.dataSet1.DataTable1;
this.toolStripComboBox1.ComboBox.DisplayMember = "Text";
this.toolStripComboBox1.ComboBox.Text = "";
note:
the dataset1 is a typed dataset , with a table named "DataTable1" that have two column ,"ID" and "Text",
private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
Console.WriteLine(((System.Data.DataRowView)this.toolStripComboBox1.ComboBox.SelectedItem).Row["ID"].ToString());
}
in the SelectedIndexChanged EventHandler, the Combox.SelectedItem object Type is DataRowView.
Greetz!