using DevExpress.ExpressApp.ConditionalAppearance; using DevExpress.ExpressApp.Editors; //... [ImmediatePostData] public bool IsMarried { // ... } [Appearance("Single", Visibility = ViewItemVisibility.Hide, Criteria = "!IsMarried", Context="DetailView")] public string SpouseName { // ... }
ImmediatePostDataAttribute Class | eXpressApp Framework | DevExpress Documentation