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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top