How to use images with a winforms datagrid

  • Thread starter Thread starter bz
  • Start date Start date
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
 
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.
 
Back
Top