Simple method of binding PictureBox Image to Datatable

J

Joe Spears

Hi
Is there a simple way to bind a PictureBox image to a datatable??
I've tried
pictureBox.DataBindings.Add("BackgroundImage", dt1, "Picture");

But it doesn't seem to work.

Do I have to go to the trouble of creating memorystreams?? I thought there
was an easy way in VS 2005 / .Net 2.0



Thanks
 
K

Kevin Spencer

You would have to reference an image that was stored in the DataTable *as*
an image. I'm guessing that "Picture" is the name of a DataColumn? What
exactly is stored in there? Pure binary data?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

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