How to use images with a winforms datagrid

B

bz

Hi,

I need to create a datagrid, and some columns must have images
I have a dataset with a datatable. the datagrid has some columns bound
to datatable, and few columns unbound, that must be images
Thise images must be different for various rows, depending on other
data from that row.
How do I set those images? I saw tere is not ImageIndex, or ImageList
to associate the datagridview with (as is the case with ListView)

Can anyone hive me some thoughts how to accompish this?

Thanks
 
R

RobinS

Add a DataGridViewImageColumn programmatically after the DGV is created.
Then you'll have to load the image for each row after you populate your data
source if it is different on each one.

RobinS.
GoldMail, Inc.
 

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