HideInUI Enum
Specifies whether a reference property or enumeration value should be hidden on certain UI views.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v25.1.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
#Members
Name | Description |
---|---|
List
|
Property (column) does not appear in List Views. You can use the Column Chooser’s Customization Form (Object Dialog) to display the property again. |
List
|
Hides the property on the List View Column Chooser Customization Form (Object Model). |
Detail
|
Property does not appear on Detail View editors. You can use the Layout Editor’s Customization Form to display the property again. |
Detail
|
Property does not appear on Detail View Customization Form (Object Model). |
Report
|
Property does not appear in the Report Designer. |
Dashboard
|
Property does not appear on the Dashboards Customization Form (Object Model). |
All
|
Property or enumeration value does not appear in UI. Similar in effect to |
List
|
Property (column) does not appear in List Views and associated Customization Form and Filter Editor. Enumeration value does not appear in List |
Detail
|
Property does not appear on Detail View editors, View Items Customization Form (Object Model), and Criteria Property Editors. Enumeration value does not appear in the items of enumeration property editor. |
Filter
|
Property does not appear in field lists in the List View’s Filter Editor and Criteria Properties. |
#Remarks
You can combine flags to hide a property on select UI views:
using DevExpress.Persistent.Base;
using DevExpress.Persistent.Base.General;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace YourSolutionName.Module.BusinessObjects;
[DefaultClassOptions]
public class Category : BaseObject {
public virtual string Name { get; set; }
[HideInUI(HideInUI.ListViewColumn | HideInUI.DetailViewEditor)]
public virtual Guid ParentObjectId { get; set; }
// ...
}
Note that only the following fields are supported for enumeration values:
All
DetailView
ListView
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl.EF;
namespace YourSolutionName.Module.BusinessObjects; {
[DefaultClassOptions]
public class TestObjects : BaseObject {
public virtual SampleEnum EnumProperty { get; set; }
}
public enum SampleEnum {
[HideInUI(HideInUI.All)]
Value1,
[HideInUI(HideInUI.DetailView)]
Value2,
[HideInUI(HideInUI.ListView)]
Value3,
Value4
}
}