----<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server">
<Behaviors>
<ig:Sorting Enabled="true" EnableCellMerging="true">
</ig:Sorting>
</Behaviors>
</ig:WebHierarchicalDataGrid>
----
This topic explains, with code examples, how to enable Cell Merging feature of the WebHierarchicalDataGrid™ control on sorting and grouping behaviors. If you need details about the Cell Merging feature itself, refer to the Cell Merging Overview topic.
The following table lists the materials required as a prerequisite to understanding this topic.
By default, Cell Merging is disabled. To enable it, you need to have the sorting behavior enabled and set the EnableCellMerging property to true .
For the child bands, you need to enable Cell Merging separately for each band. This is true for the child features, too – you need to specify the merge options individually for every band.
The following table maps the desired Enable Cell Merging to property settings.
The following code snippets demonstrate how to enable Cell Merging server-side on the sorting and on the grouping behaviors of the grid.
In ASPX:
----<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server">
<Behaviors>
<ig:Sorting Enabled="true" EnableCellMerging="true">
</ig:Sorting>
</Behaviors>
</ig:WebHierarchicalDataGrid>
----
In ASPX:
----<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server">
<GroupingSettings EnableColumnGrouping="True" GroupAreaVisibility="Visible" GroupAreaCssClass="GroupArea" EnableCellMerging="true" />
</ig:WebHierarchicalDataGrid>
----
The following samples provide additional information related to this topic.