Merging both column Header and ExtraSection
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
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
SIGN IN To post a reply.
7 Replies
AD
Administrator
Syncfusion Team
March 8, 2007 03:43 PM UTC
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
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
AP
Aditi Pisal
March 9, 2007 02:28 PM UTC
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
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
AD
Administrator
Syncfusion Team
March 9, 2007 03:37 PM UTC
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.
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.
AP
Aditi Pisal
March 12, 2007 05:32 AM UTC
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
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
AD
Administrator
Syncfusion Team
March 12, 2007 08:32 PM UTC
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
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
AP
Aditi Pisal
March 13, 2007 06:18 AM UTC
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
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
AD
Administrator
Syncfusion Team
March 13, 2007 06:20 PM UTC
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
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
SIGN IN To post a reply.
- 7 Replies
- 2 Participants
-
AP Aditi Pisal
- Mar 8, 2007 11:32 AM UTC
- Mar 13, 2007 06:20 PM UTC