BaseView.GetRow(Int32) Method

Returns an object representing a row specified by its handle.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual object GetRow(
    int rowHandle
)
Public Overridable Function GetRow(
    rowHandle As Integer
) As Object

Parameters

Name Type Description
rowHandle Int32

An integer value representing the desired row handle. Row handles are not data source indexes, see the Accessing Rows in Code. Row Handles section of the "Rows" article for more information.

Returns

Type Description
Object

An object representing a specific row.

Remarks

As implemented in the BaseView class, the GetRow method returns null. This method is implemented in the BaseView class's descendants to return an object which represents a row in the underlying data source with the specified row handle. For instance, this method is overridden by the ColumnView class. See the ColumnView.GetRow method for more information.

NOTE

In Instant Feedback Mode, the GetRow method returns the following.

  • If a row has not been loaded, this method returns a DevExpress.Data.NotLoadedObject object.
  • If a row has been loaded, this method returns an object used by the GridControl to retrieve row values. We suggest that you use the ColumnView.GetRowCellValue method to retrieve row values in Instant Feedback Mode.

To learn whether a row has been loaded, see ColumnView.IsRowLoaded.

NOTE

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the GetRow member must not be invoked for these Views. The GetRow 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