syncfusion grouping control

How do I get rid of the white line at the top of the column header cell which truncates a little portion of the column header text.
I am using Syncfusion version 4.1.0.50.

Thanx,
Prem

1 Reply

AD Administrator Syncfusion Team August 11, 2006 09:55 AM UTC

Hi Prem,

Please try the code below in the TableControlDrawCell event of the gridgroupingcontrol, to resolve this. In this event handler, draw a line on top of the column header cell, see if this helps.

private void gridGroupingControl1_TableControlDrawCell(object sender, GridTableControlDrawCellEventArgs e)
{
GridTableCellStyleInfo info = e.Inner.Style as GridTableCellStyleInfo;
if( info.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell )
{
e.Inner.Renderer.Draw(e.Inner.Graphics, e.Inner.Bounds, e.Inner.RowIndex, e.Inner.ColIndex, e.Inner.Style);
e.Inner.Cancel = true;

Pen yPen = new Pen(SystemColors.Control);
yPen.Width = 1.5f;
e.Inner.Graphics.DrawLine(yPen,e.Inner.Bounds.Location, new Point(e.Inner.Bounds.X + e.Inner.Bounds.Width, e.Inner.Bounds.Y));
}
}

Thanks,
Rajagopal

Loader.
Up arrow icon