Search code examples
c#winformsdevexpressxtragrid

DevExpress GridControl image column displays images like System.Byte[]


I have a table with person data which are Name, Surname, Code and Photo of persons. And when I select persons from table like and send the result to DevExpress GridControl it shows Name, Surname and Code columns. But Photo column displays System.Byte[] value in all rows. What is the problem.


Solution

  • You should assign the column's ColumnEdit property with an instance of a RepositoryItemPictureEdit. In this case, the XtraGrid will be able to show image in the grid.

    Sample: How to display an image in GridControl

    Related links:

    1. Repositories and Repository Items
    2. Inplace Editors Overview