Back to Devexpress

GridControl.GetFocusedValue() Method

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-443cb4aa.md

latest2.0 KB
Original Source

GridControl.GetFocusedValue() Method

Returns the focused cell’s value.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public object GetFocusedValue()
vb
Public Function GetFocusedValue As Object

Returns

TypeDescription
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

GetCellValue(Int32, GridColumn)

GetCellDisplayText(Int32, GridColumn)

GetFocusedRowCellDisplayText

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace