aspnet-js-aspxclientgridview-dot-ungroup-x28-column-x29.md
Obsolete. Clears grouping applied to the specified column.
UnGroup(
column: ASPxClientGridViewColumn | number | string
): void
| Name | Type | Description |
|---|---|---|
| column | string | number |
The data column | The column’s index | The column’s fieldName
|
When you call the client-side UnGroup(column) method, the grid behaves as follows:
GroupIndex property to -1.To group data by the values of a particular column on the client side, call the GroupBy(column) method.
For more information on grouping in the grid, refer to the following topic: ASPxGridView - Group Data.
The code sample below clears the grouping applied to the Country column.
<dx:ASPxGridView ID="grid" runat="server" ClientInstanceName="grid" KeyFieldName="CustomerID"
AutoGenerateColumns="False">
<Columns>
<dx:GridViewDataTextColumn FieldName="Country" VisibleIndex="0" GroupIndex="0"/>
<%--...--%>
</Columns>
<Settings ShowGroupPanel="true" />
</dx:ASPxGridView>
<dx:ASPxButton ID="button" runat="server" Text="UnGroup Data" AutoPostBack="false">
<ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
function OnClick(s, e) {
grid.UnGroup("Country");
}
See Also