GridControl.GetFocusedValue() Method

Returns the focused cell’s value.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.1.dll

Declaration

public object GetFocusedValue()

Returns

Type Description
Object

An object that represents the focused cell’s value. null (Nothing in Visual Basic) if the focused cell is not displayed within a View.

Remarks

The focused cell is displayed if the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.

To obtain the value of any cell displayed within a View, use the GridControl.GetCellValue method.

To learn more, see Obtain and Set Cell Values.

See Also