GridControl.GetFocusedValue() Method

Returns the focused cell's value.

Namespace: DevExpress.Xpf.Grid

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


public object GetFocusedValue()
Public Function GetFocusedValue As Object


Type Description

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


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