Display a photo in a DataGrid
Hi,
I want to display photos in a DataGrid column. I receive the filename of the photos in an XML file along with other data which I have no problem doing.
I read the XML into a DataSet. I then create another DataSet (bound to my DataGrid) along with a DataTable and DataRow. I load the data from the 1st DataSet into the rows of the bound DataSet, but I am having trouble getting the photo displayed in my DataGrid.
I have tried code like:
objRow.Item(4) = Image.FromFile("photo_01.jpeg")
and other variations and still can't get it to work.
Can I display photos in a DataSet bound to a DataGrid?
How can I do this?
My problem would be solved if I could include the photos in my XML file which can't be done.
Thanks
Kerry O'Carroll
__________________
Kerry O\'Carroll
|