ASPxGridView.ExpandRow(Int32, Boolean) Method
Expands the specified group row and optionally its child group rows at all nesting levels.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | Int32 | The row’s visible index. |
recursive | Boolean |
|
Remarks
Call the server-side ExpandRow(Int32, Boolean)
or CollapseRow(Int32, Boolean) methods to expand or collapse the specified group row.
To expand or collapse all group rows in the grid on the server side, call the ExpandAll() or CollapseAll() method.
<dx:ASPxGridView ID="ASPxGridView1" runat="server">
<%--...--%>
<Settings ShowGroupPanel="true" />
</dx:ASPxButton>
// Expands the first row and keeps the collapsed state of its child group rows
ASPxGridView1.ExpandRow(0);
// Expands the first row and keeps the collapsed state of its child group rows
ASPxGridView1.ExpandRow(0, false);
// Expands the first row and all its child group rows
ASPxGridView1.ExpandRow(0, true);
See Also