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. Image for the cookie policy date

Multiple Header rows within the same GGC

Can I have more than one Header row, (with different columns), in the same GGC? I basically want to have multiple "child" GGC's within a "parent" ggc where each child has at least 2 common columns that can be summarized by the "parent" GGC. I would like the ability to do this within a single GGC, but can't find examples of a GGC with multiple headers or GGC columns that are bound to a certain datasource for the first n-rows then bound to another datasource for the next n-rows.


3 Replies

RS Rajarajeswari S Syncfusion Team June 18, 2008 05:12 PM UTC


Hi James,

Sorry for the delay in response.


Multiple Header rows within the same GGC


If you wants to have Multiple Header rows with in the same GGC, you can make use of our Multiple-Row concept in GGC. Please refer the below code snippet which illustrates this:


$sfwg:GridColumnSetDescriptor Name="ColumnSetAddress">
$ColumnSpans>
$sfwg:GridColumnSpanDescriptor Range="R0C0:R0C1" Name="Address">
$/sfwg:GridColumnSpanDescriptor>
$sfwg:GridColumnSpanDescriptor Range="R1C0" Name="City">
$sfwg:GridColumnSpanDescriptor Range="R1C1" Name="PostalCode">
$/sfwg:GridColumnSpanDescriptor>
$/ColumnSpans>
$/sfwg:GridColumnSetDescriptor>

Note:

Here "$" is used instead of "<".

We are defining custom ColumnSets in the TableDescriptor. In the above, GridColumnsSetDescriptor defines the column set that comprises the Address, City and PostalCode fields.


Please refer the sample from the below link which illustrates this:

C:\Documents and Settings\User Name\My Documents\Syncfusion\EssentialStudio\6.3.0.6\Web\grid.grouping.web\Samples\2.0\MultiRowRecords\MultiRowEmployeeRecords\cs

Please let me know if you have any other concerns.


Regards,
Raji




JH James Hargis June 19, 2008 12:22 PM UTC

I want them in the middle of the table. Not just the top. Is that not possible?

>
Hi James,

Sorry for the delay in response.


Multiple Header rows within the same GGC


If you wants to have Multiple Header rows with in the same GGC, you can make use of our Multiple-Row concept in GGC. Please refer the below code snippet which illustrates this:


$sfwg:GridColumnSetDescriptor Name="ColumnSetAddress">
$ColumnSpans>
$sfwg:GridColumnSpanDescriptor Range="R0C0:R0C1" Name="Address">
$/sfwg:GridColumnSpanDescriptor>
$sfwg:GridColumnSpanDescriptor Range="R1C0" Name="City">
$sfwg:GridColumnSpanDescriptor Range="R1C1" Name="PostalCode">
$/sfwg:GridColumnSpanDescriptor>
$/ColumnSpans>
$/sfwg:GridColumnSetDescriptor>

Note:

Here "$" is used instead of "<".

We are defining custom ColumnSets in the TableDescriptor. In the above, GridColumnsSetDescriptor defines the column set that comprises the Address, City and PostalCode fields.


Please refer the sample from the below link which illustrates this:

C:\Documents and Settings\User Name\My Documents\Syncfusion\EssentialStudio\6.3.0.6\Web\grid.grouping.web\Samples\2.0\MultiRowRecords\MultiRowEmployeeRecords\cs

Please let me know if you have any other concerns.


Regards,
Raji







RS Rajarajeswari S Syncfusion Team June 23, 2008 07:40 PM UTC


Hi James,


Sorry, it is not possible to have the header rows in the middle of the Table.

Please let me know if you have any other concerns.


Regards,
Raji


Loader.
Live Chat Icon For mobile
Up arrow icon