Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a column of a RadGridView, I need to store and restore a value which is a Id of an Image. But the user should see it as an image, not an integer. The process of converting Id to Image and showing it to user and the process of converting the selected Image to its Id should be transparent to user.
How user selects the Image? There're two plans. I thought at first that there might be an image combobox so that I may replace GridViewImageColumn with it. If not, the user may click on the column at the row which image should be specified, a form bring up and they may select the image they want from a read-only list and with this method indeed they specify the image Id while they see the image itself. then I may change the Id and I want to image automatically be changed too.
This is close to nature of C#, but I don't know how exactly may do it.

What I have tried:

Now the column holds the Image object. This is redundant when many rows may select the same Image. I need to hold Id instead of the Image data for this purpose.
Posted

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