Back to Devexpress

RepositoryItemPopupBase.InplaceModeImmediatePostChanges Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-0fe773df.md

latest3.4 KB
Original Source

RepositoryItemPopupBase.InplaceModeImmediatePostChanges Property

Gets or sets whether the in-place editor posts its value to the bound data source immediately after the popup is closed.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(true)]
public override DefaultBoolean InplaceModeImmediatePostChanges { get; set; }
vb
<Browsable(True)>
Public Overrides Property InplaceModeImmediatePostChanges As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

True to post the edit value to the bound data source immediately after the popup is closed; False to post the edit value after losing focus.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Enable the InplaceModeImmediatePostChanges option to ensure that dependent functionality reacts immediately to user input (for example, conditional formatting, data summaries, event handlers that rely on bound field values, etc.).

If the InplaceModeImmediatePostChanges property is set to DefaultBoolean.True, the editor posts its value to the data source as soon as its value changes (without waiting for the cell to lose focus). This behavior is supported by in-place editors where input does not rely on text editing:

  • CheckEdit
  • ToggleSwitch
  • RadioGroup
  • TrackBarControl
  • RatingControl
  • PopupBaseEdit descendants

If the InplaceModeImmediatePostChanges property is set to DefaultBoolean.False, the editor posts its value after losing focus (for example, when the user focuses another grid cell).

Tip

Set the InplaceModeImmediatePostChanges property to DefaultBoolean.Default and use the WindowsFormsSettings.InplaceEditorUpdateMode property to control update behavior globally:

  • Immediate - Post the edit value immediately after the user modifies it.
  • Postponed - Post the edit value when the cell loses focus.

See Also

InplaceEditorUpdateMode

Edit Data. Create Cell Editors. Validate User Input

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace