HiddenAttribute Class
Configures the property to be hidden.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.2.dll
Declaration
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class HiddenAttribute :
Attribute
Remarks
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; }
}
}
See Also