GridView.GetRowCellValue(Int32, String, OperationCompleted) Method
Gets the value of the specified cell in the grid’s data source.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public virtual object GetRowCellValue(
int rowHandle,
string fieldName,
OperationCompleted completed
)
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value that is the handle of the row in which the desired cell resides. Row handles are not data source indexes, see the Accessing Rows in Code. Row Handles section of the “Rows” article for more information. |
field |
String | A string representing the field name whose value is to be returned. This parameter can refer to any field in the data source, even if the current View does not contain a Grid |
completed | DevExpress. |
A DevExpress. |
#Returns
Type | Description |
---|---|
Object | An object that is the specified cell’s value. If the required value is not found in the data source (e. In Instant Feedback Mode, an invalid “Non-loaded Value” is immediately returned if the requested cell is not currently loaded. |
#Remarks
The method returns null (Nothing in Visual Basic) in the following cases:
- the specified row handle doesn’t point to any of the rows within the current View or points to a group row;
- the specified field doesn’t exist in the data source.
To get a cell’s displayed value, the ColumnView.GetRowCellDisplayText method can be used.
Note
The following applies when Instant Feedback Mode is enabled.
In this mode, data is loaded by the grid control dynamically, in portions. When calling the Get
To get a valid cell value, define a method of the DevExpress.
Your Operation
Note
Detail pattern Views do not contain data and they are never displayed within Xtra
- Grid
Control. - returns the top most View in a grid;Main View - Grid
Control. - returns the focused View;Focused View - Grid
Control. - returns the currently maximized View;Default View - the sender parameter of View specific events;
- Grid
View. - returns a detail clone View for a specific master row.Get Detail View