protected override FilterColumnCollection CreateFilterColumnCollection() { var args = new CreateCustomFilterColumnCollectionEventArgs(); if (CreateCustomFilterColumnCollection != null) { CreateCustomFilterColumnCollection(this, args); } if (args.FilterColumnCollection != null) { return(args.FilterColumnCollection); } return(base.CreateFilterColumnCollection()); }
protected override FilterColumnCollection CreateFilterColumnCollection() { var args = new CreateCustomFilterColumnCollectionEventArgs(); if (CreateCustomFilterColumnCollection != null) { CreateCustomFilterColumnCollection(this, args); } if (args.FilterColumnCollection != null) { return args.FilterColumnCollection; } return base.CreateFilterColumnCollection(); }
private void gridview_CreateCustomFilterColumnCollection(object sender, CreateCustomFilterColumnCollectionEventArgs e) { if (FilterColumnsMode == FilterColumnsMode.AllProperties) { if (model == null) { model = new InternalXafWinFilterTreeNodeModel(); model.CreateCustomRepositoryItem += new EventHandler<CreateCustomRepositoryItemEventArgs>(Model_CreateCustomRepositoryItem); model.SourceControl = DevExpress.ExpressApp.Editors.CriteriaPropertyEditorHelper.CreateFilterControlDataSource(ObjectType, application != null ? application.ObjectSpaceProvider : null); } e.FilterColumnCollection = (FilterColumnCollection)model.FilterProperties; } }