How to display enumeration images in Gridview control?

Hi, How can I display an image for an enumeration in the gridview control? The display attribute as an image does not seem to take care of it automatically Regards, Ramesh
1 answers

You can do it with this:

  1. Create an extra attribute string: for example ImageURL
  2. If the enum value changes, change ImageURL
  3. Value should be something like: \img\module$image.png (inspect an image in the browser for this). Be careful this may change in the future.
  4. Select in the gridview with rendering 'interpret as image url'