|
-
May 16th, 2010, 01:29 AM
#1
Thread Starter
Fanatic Member
Displaying an image
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
-
May 16th, 2010, 01:32 AM
#2
Frenzied Member
Re: Displaying an image
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
-
May 16th, 2010, 02:00 AM
#3
Thread Starter
Fanatic Member
Re: Displaying an image
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?
-
May 16th, 2010, 02:12 AM
#4
Re: Displaying an image
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|