ASPxGridView.IsGroupRow(Int32) Method
Indicates whether the specified row is a group row.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v23.2.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | Int32 | The row’s visible index. |
Returns
Type | Description |
---|---|
Boolean |
|
Remarks
Call the IsGroupRow
method to get information about the grouping state of the specified row.
For more information on grouping in the grid, refer to the following topic: ASPxGridView - Group Data.
The code sample below traverses through the visible rows on page and calls the IsGroupRow
method to get a collection of group row indices.
<dx:ASPxGridView ID="grid" runat="server" OnBeforeGetCallbackResult="grid_BeforeGetCallbackResult">
<%--...--%>
<Settings ShowGroupPanel="True" />
</dx:ASPxGridView>
protected void grid_BeforeGetCallbackResult(object sender, EventArgs e) {
List<int> groupIndices = new List<int>();
for(int i = 0; i < grid.VisibleRowCount; i++) {
if(grid.IsGroupRow(i))
groupIndices.Add(i);
}
}
See Also