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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

syncfusion grouping control

Thread ID:





47706 Aug 10,2006 02:25 PM UTC Aug 11,2006 09:55 AM UTC WinForms 1
Tags: Grouping
Asked On August 10, 2006 02:25 PM UTC

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



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon