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.
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,DimiDeveloper Support EngineerInfragistics, Inc.
Hi Vince
i am unable to create an bitmap object
Dim aBitMap As Bitmap
what are the directives needed to import
thanks
The following thread provides more information on other ways you can make a cell display an image (in addition to setting its .Appearance.Image as suggested earlier):http://forums.infragistics.com/forums/t/27185.aspx
You can set the .Appearance.Image property of an UltraGridCell. You'll probably need to create a Bitmap object from the file system image file and then set the Image property to it. From what I can tell you need to set the property to an image or the index of an image in an ImageList.