Skip to main content

CompatibilitySettings.UseLegacyDeleteButtonInButtonEdit Property

Gets or sets whether to use the legacy Null Value button in the ButtonEdit editor and its descendants.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Data.Desktop.v22.2.dll

NuGet Packages: DevExpress.Data.Desktop, DevExpress.Win.Dashboard.Design, DevExpress.Win.Design


public static bool UseLegacyDeleteButtonInButtonEdit { get; set; }

Property Value

Type Description

true, to use the legacy Null Value button; otherwise, false.


ButtonEdit allows you to enable the Null Value (delete) button and places it within the editor’s edit box (set the NullValueButtonPlacement property to EditBox). The editor’s ActualButtons property returns a collection of all the buttons displayed within the editor including the Null Value button.

In versions prior to v19.1, the ActualButtons collection items were of the ButtonInfo type.

In version 19.1, we changed the Null Value button design to match the appearance of a similar button in GridControl‘s search panel. It also became possible to re-use this button in your application.

For this, we implemented a new ButtonInfo type - DeleteButtonInfo.

When NullValueButtonPlacement is set to EditBox, ActualButtons now contains this button type instead of ButtonInfo. If you use this property to customize the built-in buttons and check that the button type equals ButtonInfo, modify your implementation to use the DeleteButtonInfo type.

In versions prior to v19.1, the Null Value button is disabled when the editor is read-only. Starting with v19.1, the Null Value button is hidden for the read-only editors.

Starting with v19.1.4, you can set the UseLegacyDeleteButtonInButtonEdit property to true to return to the old appearance and behavior.

See Also