GridView.GetRowCellValue(Int32, GridColumn, OperationCompleted) Method
Returns the specified cell’s value in Instant Feedback Mode.
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,
GridColumn column,
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. |
column | Grid |
A Grid |
completed | DevExpress. |
A DevExpress. |
#Returns
Type | Description |
---|---|
Object | An object that is the specified cell’s value. null (Nothing in Visual Basic) if the specified cell is not found. 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 column doesn’t belong to the View or is a null reference.
Note
The following note 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.
private void simpleButton1_Click(object sender, EventArgs e) {
object val = gridView1.GetRowCellValue(501, gridView1.Columns["Subject"], MyOperationCompleted);
if(BaseEdit.IsNotLoadedValue(val))
MessageBox.Show("The row is not loaded");
else
MessageBox.Show("The row is loaded. Its value is " + val);
}
void MyOperationCompleted(object arguments) {
MessageBox.Show("The requested row is now loaded. Its value is " + arguments);
}
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