We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding Image Headers inside the grid

Can someone please help me out with adding headers to the grid. I would like to insert an image for a header directly into the grid dynamically.


Thanks for your inquiry.

Well, you may add only textual custom header inplace of original column headers i.e. A,B,C...., please check the featured demo: http://www.aspose.com/demos/aspose.grid/description/common/customheaders.htm Image headers are not supported yet, we will consider to support it in future versions.

If you want to insert images into a workhseet cells as CellImage objects, please check the source code of the featured demo: http://www.aspose.com/demos/aspose.grid/description/common/hyperlinkdemo.htm

Also, check the following code;

//Adds a CellImage

CellImage image = GridWeb1.WebWorksheets[0].CellImages.AddCellImage("B8");

image.ImageUrl = "../../Images/Aspose.Grid.gif";

image.ToolTip = "A simple CellImage.";

GridWeb1.WebWorksheets[0].Cells["A8"].PutValue("Creates a CellImage:");

GridWeb1.WebWorksheets[0].Cells.SetRowHeight(7, new Unit("100pt"));

Thank you.