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


Thread ID:





58220 Mar 20,2007 09:36 PM UTC Mar 22,2007 08:04 PM UTC WinForms 1
Tags: Grouping
Michael Gutkin
Asked On March 20, 2007 09:36 PM UTC

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 08:04 PM UTC

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.

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