Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
replacing a column value with an image
posted

what is the best way to translate a particular column value (integer in this case) to an image?  So for example, if the col value is 1, the image displayed in the col is image1.png, if the col value is 2, the image displayed in the col is image2.png, etc.

Thanks in advance

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    If yuo want to just show an image in the cell and not show the value, then what I would do is use the grid's InitializeLayout event to hide the column with the numbers in it and add an unbound column with a DataType of Bitmap.

    Then you can use the InitializeRow event to examine the value in the hidden column and get set the value on the image column to the image you want.

Children