ASPxClientGridView.UnGroup(column) Method
Obsolete. Clears grouping applied to the specified column.
Declaration
UnGroup(
column: ASPxClientGridViewColumn | number | string
): void
Parameters
Name | Type | Description |
---|---|---|
column | string | number | ASPxClientGridViewColumn | The data column | The column’s index | The column’s fieldName |
Remarks
When you call the client-side UnGroup(column)
method, the grid behaves as follows:
- Clears the grouping by the values of the specified column.
- Sets the column’s
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>
<br />
<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