ASPxGridView.GetRowLevel(Int32) Method
Returns the level at which the specified row resides.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | Int32 | An integer value that specifies the row’s visible index. |
Returns
Type | Description |
---|---|
Int32 | An integer value that specifies the level at which the specified row resides. |
Remarks
Use the GetRowLevel method to identify at which level a group or data row resides.
Example
<dx:ASPxGridView ID="ASPxGridView1" runat="server" OnSummaryDisplayText="ASPxGridView1_SummaryDisplayText">
<Settings ShowGroupPanel="true" ShowFooter="True" ShowGroupFooter="VisibleIfExpanded"/>
<Columns>
...
</Columns>
<GroupSummary>
<dx:ASPxSummaryItem FieldName="UnitPrice" ShowInGroupFooterColumn="UnitPrice" SummaryType="Count" />
</GroupSummary>
</dx:ASPxGridView>
Online Example
Implementing a context menu with “Select / Unselect All In Group” functionality
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetRowLevel(Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.