Skip to main content
.NET 6.0+

PrintSelectionBaseController.ShowInReportActionEnableMode Property

Specifies when the PrintSelectionBaseController.ShowInReportAction is disabled with regard to data modifications in the current View.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v24.1.dll

Declaration

public PrintSelectionBaseController.ActionEnabledMode ShowInReportActionEnableMode { get; set; }

Property Value

Type Description
PrintSelectionBaseController.ActionEnabledMode

An ActionEnabledMode enumeration value that specifies when the ShowInReportAction is disabled.

Remarks

Data for a selected report is always read from a separate Object Space, so unsaved changes are not included. To specify the Action availability when there are changes in the current View, use one of the following values:

  • None - Action is not disabled.
  • ModifiedChanged - Action is disabled in accordance with the IObjectSpace.ModifiedChanged event. Used in WinForms applications by default.
  • ViewMode - Action is disabled depending on the DetailView.ViewEditMode property. Used in ASP.NET Web Forms applications by default.

The ShowInReportActionEnableMode default value is taken from the static PrintSelectionBaseController.ShowInReportActionEnableModeDefault field. This field is initialized by the ReportsWindowsFormsModule and ReportsAspNetModule classes. Handle the XafApplication.SetupComplete event to modify the default value, or introduce a new Controller, access the PrintSelectionBaseController controller and change the ShowInReportActionEnableMode property value.

See Also