Ticket T454110
Visible to All Users

ASPxGridView - How to display a binary image when columns are created automatically

created 8 years ago

When I try to display columns with images in an ASPxGridView it does not display the image, cells display "System.Byte []".
How can I display the images (jpeg, bmp …) stored in a blob field in an ASPxGridView?
My ASPxGridView is AutoGenerateColumns. This is very important because users have a wizard to create their own queries to the database.

Thank you.

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hello Fernando,

ASPxGridView doesn't create a GridViewBinaryImageColumn column automatically. So, it is necessary to create it manually at runtime when it is required. I suggest you use the approach demonstrated at the ASPxGridView - How to add a column if the AutoGenerateColumns property is set to true example to accomplish your task.
Let me know if you need further assistance.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.