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
535
Image in Grid using Datatable
posted

Hi,

i have a Datatable with a column of Bytes.
In order to avoid storing images in the Database every Byte stands for a single image from the resource.

The Table is bound as DataSource:

ugrdSender.DataSource = senderDataSet;

The Column of Bytes should be replaced with the recording image of the recource:

newRowBase["Online"] =Properties.Resources.S32gn;

But this can't work, as the data is bytes an not an image.

How to replace the bytes in the column with an image in the grid?

thanks for every idea ..;-)

Torsten

Parents
  • 12480
    Verified Answer
    Offline posted

    Hi Torsten,

    You can accomplish this by using an unbound column. Hide your byte column and set the image of the unbound column based on the value in the hidden byte column. I've attached a sample project that demonstrates this.

    Please let me know if you have any questions.

    UnboundImageColumn.zip
Reply Children
No Data