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
955
How to let the ultrGrid display picture?
posted

I have a field in the table and the datatype is image, and I have manually created a column in ultragrid and it's datatype is System.Drawing.Bitmap, I select the data from the table generating a DataTable ,then set the datatable to the ultragrid, but in the utlragrid, it can not display the picture ,it only shows System.Byte[], how to handle this issue?

Thanks!

  • 12773
    Suggested Answer
    posted

    Hello,

    If you have stored your Images in to the database and when you get them form there as images you just need to set the style of the column to Image
    You can find more details here:
    http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=Infragistics2.Win.UltraWinGrid.v10.1~Infragistics.Win.UltraWinGrid.ColumnStyle.html

    if you simply has the path of the image you can assign the image directly to the value by recreating it.  You can find similar article here:
    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=1749

    I hope this helps.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.