Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir I m New I Windows Application I m Make A Project Employee Management System i M Showing Employee information in Datagridview and Also show Image Employee Photo but Image is Grater then And .Small or other ... and not Show proper fomate and Size so i m Streach properties use but sir i m want to Show image in spacific Formate and Like In .Net Grid we can Set Size of Image ussing CSS but in Desktop application in Datagrid view how To Set image Size And show in Datagridview windows Appliacation form.. Sir i want to Set and show photo in Datgridview how to show image photo in dAtagrid in Looking Nice.. Please Help Me Sir ...
Thank you ...
Sorry for bad English..
Posted
Comments
AnthonyMG 16-Jan-14 23:46pm    
Try to set the image size like this.

img.Image = new Bitmap(SystemIcons.Exclamation.ToBitmap(), 8, 8);
AnthonyMG 16-Jan-14 23:48pm    
you can try this solution as well..

DataGridViewImageColumn photoColumn = new DataGridViewImageColumn();
photoColumn.DataPropertyName = "Photo";
photoColumn.Width = 200;
photoColumn.HeaderText = "Image";
photoColumn.ReadOnly = true;
photoColumn.ImageLayout = DataGridViewImageCellLayout.Normal;
dataGridView.Columns.Add(photoColumn);
Member 10315500 21-Jan-14 2:40am    
THANK YOU SIR ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900