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

namco picture namco · Aug 23, 2012 · Viewed 15.8k times · Source

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.

Answer

DmitryG picture DmitryG · Aug 23, 2012

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