I want to display an image in a datagridview,but i have no idea of doing the same.Is there any code bank submission regarding this topic or some ideas how to go for this?
please help
thank you
Printable View
I want to display an image in a datagridview,but i have no idea of doing the same.Is there any code bank submission regarding this topic or some ideas how to go for this?
please help
thank you
There is a DataGridViewImageCell object, I'm sure it has pretty much the same properties as a picturebox.
Check that out and what you can come up with.
Justin
can you help me with some sample code on which i can work on with?
Is it a hard task in windows forms to display an image in the dgv?
You should be able to do it without writing a single line of code. Is this a DataGridView you dragged to your form or is it created at runtime?
If you dragged it to your form, you can look at the Colmuns Collection in the properties list and set one of the columns to a DataGridViewImageCell (as Monk mentioned). Then you can specify the Image you want to display in each cell at Design time or run time. You'll need to put your images in an ImageList.