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
365
How to add a Image to cells of a ultrawingrid for a column
posted

Hi Friends,

i want to declare a column  and

i want to add images under that column from local file system.

kindly help me from starting of how to add column of type image

and how to add images to that column.

Thanks in advance.

Parents
No Data
Reply
  • 12773
    posted

    Hello,

    You can use type of the column Image if you wan to add only image, if you wan to add text too then tyou can use Appearance.Image.
        table.Columns.Add(New DataColumn("PhotoPath", GetType(Image)))

    And when you add the image you need to set the image in Initialize row event:
      e.Row.Cells("Photopath").Value = Image.FromFile("..\\..\\ShoppingCart128.png")

    I hope this helps.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.

Children
No Data