protected override void OnViewControlsCreated()
        {
            base.OnViewControlsCreated();

            View.Items.Where(i => i.Control is MRUEdit).ToList().ForEach(i =>
            {
                XafDataView xpDataView = ObjectSpace.CreateDataView(i.ObjectType, i.Id, null, null) as XafDataView;
                if (xpDataView != null)
                {
                    ((MRUEdit)i.Control).Properties.Items.AddRange(xpDataView.Cast <XpoDataViewRecord>().Where(r => r[i.Id] != null && !string.IsNullOrWhiteSpace(r[i.Id].ToString())).Select(r => r[i.Id]).Distinct().ToList());
                }
            });
        }
        void ChooseColumnAction_Execute(object sender, SingleChoiceActionExecuteEventArgs e)
        {
            var view = ObjectSpace.CreateDataView(typeof(LargeBusinessObject), new List <DataViewExpression>()
            {
                new DataViewExpression("Name", LargeBusinessObject.Field.GetOperand(m => m.Name)),
                new DataViewExpression("Property", (OperandProperty)e.SelectedChoiceActionItem.Data),
            }, null, new List <SortProperty>());

            foreach (ViewRecord item in view)
            {
                var name     = item["Name"];
                var property = item["Property"];

                var obj = ObjectSpace.CreateObject <XPViewBusinessObjectProxy>();
                obj.Name     = name as string;
                obj.Property = property as string;

                (View.CollectionSource as DevExpress.ExpressApp.CollectionSource).Add(obj);
            }
        }