How to data-bind a ToolStripMenuItem to a column of a DataTable?

  • Thread starter Thread starter nvx
  • Start date Start date
N

nvx

Hi,
I'd very much like to bind a ToolStripMenuItem to a column of a
DataSet.DataTable so the entries in that column would be the items in
the ToolStripMenuItem. Is there any possibility to do this? I've tried
to use

((ToolStripMenuItem)nameOfTheToolStripMenuItem).DropDown.DataBindings.Add("colname",
myDataSet.Tables["tablename"], "colname");
but it fails (an exception is thrown).

Thanks for any help...

With regards
nvx
 
Back
Top