private void gridGroupingControl1_TableControlCellDrawn(object sender, GridTableControlDrawCellEventArgs e)
{
GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo;
//for column header
if (style.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell &&
style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.Name == "Location")
{
GridStaticCellRenderer.DrawImage(e.Inner.Graphics, this.imageList1,1, e.Inner.Bounds, false);
}
// for the stacked header
if (style.TableCellIdentity.TableCellType == GridTableCellType.StackedHeaderCell && style.TableCellIdentity.ColIndex==1)
{
GridStaticCellRenderer.DrawImage(e.Inner.Graphics, this.imageList1, 0, e.Inner.Bounds, false);
}
}