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.

Merging both column Header and ExtraSection

Thread ID:

Created:

Updated:

Platform:

Replies:

57674 Mar 8,2007 06:32 AM Mar 13,2007 02:20 PM Windows Forms 7
loading
Tags: GridControl
Aditi Pisal
Asked On March 8, 2007 06:32 AM

Hi,
Pls help me to acheive the merging of Column Header and the applying Extra section to it.
I am using GridGrouping Control.
Attached is the sample requirement

Thanks in Advance

Merging the ExtraSection.zip

Administrator [Syncfusion]
Replied On March 8, 2007 10:43 AM

Hi Aditi.Pisal,

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 sample and let me know if this helps.

Best Regards,
Haneef

Aditi Pisal
Replied On March 9, 2007 09:28 AM

Hi Haneef,
Thanks for your sample .I have implemented it ,but I am getting an extra row below the columns as shown in the attachment.

I have also used the Employee View to merge the columns using the columnset.


Pls specify how to remove this extra row below the column headers.

SampleRequirement.zip

Administrator [Syncfusion]
Replied On March 9, 2007 10:37 AM

Hi Aditi,

To remove the extra section placed below the column header in a grid, you need to comment the this.Sections.Add(new BelowColumnExtraSection(this)) statement in the OnInitializeSections override method of the GroupingChildTable class which is derived from the ChildTable class. Here is a code snippet

//// Extra section
//this.Sections.Add(new BelowColumnExtraSection(this));

Best regards,
Haneef

Note : Please comment the lineno 134 in CustomEngine.cs file.

Aditi Pisal
Replied On March 12, 2007 01:32 AM

Hi Hannef,

I tried your earlier sugeestion of commenting the BelowColumnHeader Section and it worked.
Thanks a lot for that,
But the caption header is still visible ,which is not required.

I tried to comment that line too in Custom Engine .cs,but I get exception of "Object reference not set to an instance of the object".
Pls help.


Caption Header Problem.zip

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

Hi Aditi,

You would have to derive the ChildTable and override the IsChildVisible method to return the false value for the CaptionSection. Please let me know if this helps.

public override bool IsChildVisible(Element el)
{
if (this.IsTopLevelGroup )
{
if (el is CaptionSection )
return false;
else
return true;
}
}

Best Regards,
Haneef

Aditi Pisal
Replied On March 13, 2007 02:18 AM

Hi Haneef,
I tried the code given
if (this.IsTopLevelGroup )
{
if (el is CaptionSection )
return false;
else
return true;
}
But this is not at all working.
My earlier AboveColumnExtra section is also overridden and all the changes turn out in a mess.
Pls help

Caption Header Problem0.zip

Administrator [Syncfusion]
Replied On March 13, 2007 02:20 PM

Hi Aditi,

Refer this modifed sample that shows you "How to hide the CaptionRow and AddNewRecord from the TopLevelGroup using a CustomEngine. Please let me know if this helps.

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.

;