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.


Thread ID:





58220 Mar 20,2007 05:36 PM Mar 22,2007 04:04 PM Windows Forms 1
Tags: Grouping
Michael Gutkin
Asked On March 20, 2007 05:36 PM

How do I display empty columns and empty rows in grouping grid, similar to regular grid (myGrid.TableModel.Options.DisplayEmptyColumns).
When I try to use this property in grouping grid, the grid freezes.

Administrator [Syncfusion]
Replied On March 22, 2007 04:04 PM

Hi MG,

Sorry for the delay in getting back to you. One way you can do this by using the custom engine and derive the GridTableControl, overriding OnPaint() and draw the required gridlines to get an empty lines stay on the GGC. Please refer this and let me know this helps.

protected override void OnPaint(PaintEventArgs e)

Rectangle rect = this.RangeInfoToRectangle(GridRangeInfo.Table());

ControlPaint.DrawGrid(e.Graphics,e.ClipRectangle,new Size(this.GroupingControl.TableOptions.DefaultColumnWidth,2),Color.Red);
ControlPaint.DrawGrid(e.Graphics,e.ClipRectangle,new Size(2,this.GroupingControl.TableOptions.RecordRowHeight),Color.Red);

PaintEventArgs psrg = new PaintEventArgs(e.Graphics,rect);


Best regards,


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.