Back to Devexpress

ColumnView.FocusedRowModified Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-bc8f2d68.md

latest3.5 KB
Original Source

ColumnView.FocusedRowModified Property

Gets a value indicating whether the focused row’s cell values have been modified since the row last received focus.

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 bool FocusedRowModified { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property FocusedRowModified As Boolean

Property Value

TypeDescription
Boolean

true if the focused row’s data has been changed; otherwise, false.

|

Remarks

When a row receives focus, the FocusedRowModified property is automatically set to false. As soon as a user changes a cell value, this property is set to true. Note that if the row is focused once again, the FocusedRowModified property value is set to false. This property value is true only if cell values were changed since the row last received focus.

When a modified row loses focus, the ColumnView.ValidateRow event is raised. This event enables you to check row values for validity and implement the desired response (display an error message, prohibit row focus moving until cell values are corrected, etc).

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the FocusedRowModified member must not be invoked for these Views. The FocusedRowModified 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

CellValueChanging

CellValueChanged

SetFocusedRowModified()

ValidateRow

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace