GridView.GetVisibleRowLevel(Int32) Method

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v21.1.dll


public virtual int GetVisibleRowLevel(
    int rowVisibleIndex


Name Type Description
rowVisibleIndex Int32

An integer value identifying the row by its visible index.


Type Description

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


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.


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 real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also