Click here to Skip to main content
15,886,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my window base application. i have uploaded scan(.jpeg,.png..etc) images into my database into binary format.but i want to display only images into datagridview. once i bind the images so datagridview cell size becomes large as per the images. but i want image size should be small and once user click on it so that pirticular image should be large. please give me some hints. or examples . i
Posted

1 solution

Hi,

Set the size of the image as small using any css class as you want and use the css active to enlarge the image while clicking.

Also you can use on_Click event for the image button.

Use z-index property to avoid the design collapsing.

Hope this help you , if u have any further queries let me know.

Thanks !
 
Share this answer
 
Comments
faizyab 2009 7-Jul-15 2:27am    
Sir .But Can We use CSS in side the window base application ??? Sir i am talking about DataGridview. and css applies applies into Gridview Control.
Chrisraj 7-Jul-15 2:35am    
Fine.. Using the css inside the DataGridview is not a probelem. can u post the sample codes to make me clear.
faizyab 2009 7-Jul-15 2:36am    
sir if you are saying so i try . be online because if it does not run so i will ask from you again ...

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