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.

Multiple row header (group)

Thread ID:

Created:

Updated:

Platform:

Replies:

61987 Jun 5,2007 03:54 PM Jun 13,2007 07:02 PM Windows Forms 8
loading
Tags: GridControl
m.n.m,n.mn
Asked On June 5, 2007 03:54 PM

Hi Haneef, another thingy i need help with..:)

is there a way to make another row header on the top
where i'm gonna group certain column headers beneath it that i want to group, as example in the attachement:

thanx..p.s. black dots represent header text..:)

haneefm [Syncfusion]
Replied On June 5, 2007 05:32 PM

Hi Mario,

You would have to derive the GridEngine and add an extra row header set up through the custom section above and below the the column header. Please refer this forum thread and let me know if this helps.

Best Regards,
Haneef

m.n.m,n.mn
Replied On June 7, 2007 02:24 PM



>Hi Mario,

You would have to derive the GridEngine and add an extra row header set up through the custom section above and below the the column header. Please refer this forum thread and let me know if this helps.

Best Regards,
Haneef

Thanx Haneef, i figured it out...

Vicko Hazdovac
Replied On June 11, 2007 09:44 AM

Hi i need the same thing, and this example is rather useful, but there is one problem

if I use the CustomEngine from the example it sets the properties application-wide (basically every GridGrouping control has the extra row with above the column headers)

how can I determine which control in my application will display the extra section and which won't?

haneefm [Syncfusion]
Replied On June 11, 2007 11:27 AM

Hi Vicko,

To localize GridEngineFactory, you need to pass the GridEngine object to the GroupingControl constructor in Form''''s IntializeComponet method . Here is a code snippet.

//To apply the Custom Engine to the grid...
this.gridGroupingControl1 = new GridGroupingControl( new CustomGroupingEngineFactory().CreateEngine() );

//For normal grid...
this.gridGroupingControl1 = new GridGroupingControl();

Please refer the below forum thread for more detail.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=46314

Best regards,
Haneef

Vicko Hazdovac
Replied On June 12, 2007 06:23 AM

This kinda works... but I have a problem with it :)

the thing is... I've created my gridGroupingControl through the designer. And then I changed the constructor in the Form.Designer.cs

And it worked - but now every time I view the actual designer it replaces my code with the default constructor :
this.gridGroupingControl1 = new GridGroupingControl();

how can I solve this ?
Or is there another way to do this without using a different constructor?

haneefm [Syncfusion]
Replied On June 12, 2007 03:46 PM

Hi Vicko,

You would have to derive the GridGroupingControl and override the default constructor. Here is a code snippet to show this.

public class MyGrid : GridGroupingControl
{
public MyGrid() : base(new CustomGroupingEngineFactory().CreateEngine())
{
}
}

Best regards,
Haneef

Vicko Hazdovac
Replied On June 13, 2007 05:50 AM

hmmmmm... well that's a problem because I already have derived gridgroupingcontrol and customized it.

Now I just need to be able to decide when to have grouped headers and when not. If I derive my derived class it will unnecessarily complicate the entire project and create code redundancy.

Is there no easier way to use grouped headers, or to say the designer to use the other constructor?

This is very important so please get back to me as soon as possible. Thank you.

haneefm [Syncfusion]
Replied On June 13, 2007 07:02 PM

Hi Vicko,

Sorry for the inconvenience caused. There is no built-in support for this. Right now, you can manually specify the parameter GroupingGrid constructor whenever open the form designer in a project. Thanks for choosing Syncfusion products.

Best regards,
Haneef

CONFIRMATION

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.

;