corelibraries-devexpress-dot-mvvm-dot-dataannotations-b475dd71.md
Configures the property to be hidden.
Namespace : DevExpress.Mvvm.DataAnnotations
Assembly : DevExpress.Mvvm.v25.2.dll
NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class HiddenAttribute :
Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False)>
Public Class HiddenAttribute
Inherits Attribute
A property that is marked with the Hidden attribute is available via the column chooser.
See the example below:
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using DevExpress.Mvvm.DataAnnotations;
namespace DataApplication {
public class Employee {
[Hidden]
public int ID { get; set; }
public string Employer { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
}
Object Attribute HiddenAttribute
See Also