HiddenAttribute Class

Configures the property to be hidden.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v19.2.dll

Declaration

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class HiddenAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Property, AllowMultiple:=False)>
Public Class HiddenAttribute
    Inherits 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; }
    }
}

Inheritance

Object
Attribute
HiddenAttribute
See Also