Skip to main content

GridView.GetVisibleRowLevel(Int32) Method

Returns the group level of a row specified by its visible index.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public virtual int GetVisibleRowLevel(
    int rowVisibleIndex
)

Parameters

Name Type Description
rowVisibleIndex Int32

An integer value identifying the row by its visible index.

Returns

Type Description
Int32

A zero-based integer representing the row’s group level.

Remarks

The method performs the same task as the GridView.GetRowLevel method. The only difference is that the row is specified by its visible index rather than by its handle. Note that visible indexes can be converted to row handles and vice versa. The ColumnView.GetVisibleIndex and ColumnView.GetVisibleRowHandle methods can be used for this purpose. Please refer to the Rows topic for more information on row handles and visible indexes.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the GetVisibleRowLevel member must not be invoked for these Views. The GetVisibleRowLevel member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also