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

c#, devexpress, winforms, xtragrid

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:

- Repositories and Repository Items

- Inplace Editors Overview

Problem

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.

Original source