954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Image in DataGridView

Hi All,
I am Working in C#.Net Technology (Window Based Application).My Problem is that ,I Want to display a Image in DataGridView cell.Iam able to display different Images In different cell of particular Column,But my problem is that Iam getting the image of a Exact Size.What I wan is to Scale a Image so that Whole Iamge is Visible In a Small Size not a Part Of it.
Can any body guide me .

Rahul Joshi

RAHUL JOSHI
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

What are you using to view the image? If it is a PictureViewer object then just set the sizeMode property of the image to Zoom. Then resize the PictureViewer to whaterver size you want. I'm not sure what your using to view the image though. Is it an excel spreadsheet? Access?

Godfear1
Light Poster
47 posts since Oct 2006
Reputation Points: 12
Solved Threads: 3
 
What are you using to view the image? If it is a PictureViewer object then just set the sizeMode property of the image to Zoom. Then resize the PictureViewer to whaterver size you want. I'm not sure what your using to view the image though. Is it an excel spreadsheet? Access?


I think he wants his image to auto-scale to fit his column in his window application.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
What are you using to view the image? If it is a PictureViewer object then just set the sizeMode property of the image to Zoom. Then resize the PictureViewer to whaterver size you want. I'm not sure what your using to view the image though. Is it an excel spreadsheet? Access?

Hi GodFear,

Firstly thanks for replying.
Dear iam using DatagridViewImageColumn to show a Image in a cell.
Problem is it is not showing full image ,it s just showing the part of it image.What i want to show full Image.

Waiting for ur Reply.

Rahul Joshi

RAHUL JOSHI
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Hi All, I am Working in C#.Net Technology (Window Based Application).My Problem is that ,I Want to display a Image in DataGridView cell.Iam able to display different Images In different cell of particular Column,But my problem is that Iam getting the image of a Exact Size.What I wan is to Scale a Image so that Whole Iamge is Visible In a Small Size not a Part Of it. Can any body guide me .

Rahul Joshi

Mr . Rahul i hope u solve the problem. i also have the similar problem. plz tell me how can you handle this problem. i am waiting for your reply.

qauaan
Newbie Poster
12 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

I am working on vb.net,I Want to display a Image in DataGridView cell.Iam unable to display different Images In different cell of particular Column can any body guide me

s_nageswararao
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

select stretch property in DatagridViewImageColumn

Padma Prajapati
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You