Back to Devexpress

ColumnView.FocusedValue Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-1c9686eb.md

latest2.9 KB
Original Source

ColumnView.FocusedValue Property

Gets the focused cell value.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual object FocusedValue { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property FocusedValue As Object

Property Value

TypeDescription
Object

An object representing the focused cell value.

|

Remarks

If your View is in edit mode, the currently edited value can be accessed via the ColumnView.EditingValue property. In this case, the FocusedValue property returns the cell value before opening the editor.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the FocusedValue member must not be invoked for these Views. The FocusedValue member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also

EditingValue

Focus Data Grid Cells

Edit Data. Create Cell Editors. Validate User Input

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace