GridControl.KeepFocusedRowOnUpdate Property
In This Article
Gets or sets whether the focused row retains focus when a user sorts or filters GridControl data. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(true, Handler = "OnKeepFocusedRowOnUpdateChanged")]
public bool KeepFocusedRowOnUpdate { get; set; }
#Property Value
Type | Description |
---|---|
Boolean | true if the focused row retains focus when a user sorts or filters grid data; otherwise, false. |
#Remarks
If the KeepFocusedRowOnUpdate property is set to true, the focused row retains focus when a user sorts or filters data, or when records are added or removed from a data source.
Set the KeepFocusedRowOnUpdate property to false to focus the first visible row when a user sorts or filters GridControl data.
See Also