We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

syncfusion grouping control

Thread ID:





47706 Aug 10,2006 10:25 AM Aug 11,2006 05:55 AM Windows Forms 1
Tags: Grouping
Asked On August 10, 2006 10:25 AM

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


Administrator [Syncfusion]
Replied On August 11, 2006 05:55 AM

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));



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.