windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsbehavior-8efbe5b2.md
Gets or sets whether the grid control is repainted when focus is moved from one cell to another.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
[DefaultValue(true)]
[XtraSerializableProperty]
public bool RepaintGridOnFocusedCellChanged { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property RepaintGridOnFocusedCellChanged As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if the grid control is repainted when focus is moved from one cell to another; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to RepaintGridOnFocusedCellChanged |
|---|---|
| PivotGridControl |
.OptionsBehavior .RepaintGridOnFocusedCellChanged
|
By default, the grid is repainted when moving focus from one cell to another. This allows cells to be updated according to the currently focused cell. If changing cell focus slows down the performance of your PivotGrid control, consider disabling the RepaintGridOnFocusedCellChanged option. When this option is disabled, only the previously and currently focused cells are repainted on changing focus.
The PivotGridControl.LayoutChanged method allows you to update the grid control manually, if required.
See Also
PivotGridOptionsBehavior Class