Click here to Skip to main content
14,693,770 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
How can I save and retrieve an image for a gridview? And if you double click on the gridview in a particular row, it displays the image in an image control?
Posted
Updated 15-Oct-10 3:45am
v2
Comments
Bikash Shrestha From Nepal 15-Oct-10 12:06pm
   
can u plz elaborate your problem clearly

1 solution

You will likely want to use the Bitmap[^] class for saving/retrieving the image.

For the double-click, you'll need to write an event handler. You'll more than likely want to write a single handler that determines the row (such as just making use of the row's click event) and then use information about the row that was clicked to figure out which image to display.

For the image control, just set the source to the image that they've selected. There's no magic there.

Cheers.
   

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