AD
Administrator
Syncfusion Team
August 20, 2004 07:53 PM UTC
The Header celltype does not support images. Only Static, TextBox and Image will use the ImageList to draw an image.
So you can make your header cell as static and then set your ImageIndex.
this.gridControl1[0,3].ImageList = imageList;
this.gridControl1[0,3].ImageIndex = 1;
this.gridControl1[0,3].CellType = "Static";
this.gridControl1[0,3].CellAppearance = GridCellAppearance.Raised;
For a GridDataBoundGrid, you could use the PrepareViewStyleInfo to set these properties.
MS
Maxim Software Systems
August 23, 2004 10:32 AM UTC
Thanks, that''s perfect. The CellAppearance property is what I was looking for. Tthat''s better than handling the DrawCellFrameAppearance thing I tried (which still worked, but this is better).