HA
haneefm
Syncfusion Team
July 10, 2007 11:35 PM UTC
Hi Stephen,
One thing you can do is to handle the CellDrawn event, and if it is the current rowheader that has been drawn, then draw your bitmap over it. Here is code that assume the image you want to use is 0th entry in the ImageList, this.imageList1.
private void grid_CellDrawn(object sender, GridDrawCellEventArgs e)
{
if(e.ColIndex == 0 && e.RowIndex >0 )
{
Rectangle rect = GridUtil.CenterInRect(e.Bounds, this.imageList1.ImageSize);
GridStaticCellRenderer.DrawImage(e.Graphics, this.imageList1, 0, rect, false);
}
}
Best regards,
Haneef
ST
Stephen Trinder
July 13, 2007 05:05 AM UTC
Hi Haneef.
That's works great, thanks for your help.
-Stephen