コード例 #1
0
        protected override FilterColumnCollection CreateFilterColumnCollection()
        {
            var args = new CreateCustomFilterColumnCollectionEventArgs();

            if (CreateCustomFilterColumnCollection != null)
            {
                CreateCustomFilterColumnCollection(this, args);
            }
            if (args.FilterColumnCollection != null)
            {
                return(args.FilterColumnCollection);
            }
            return(base.CreateFilterColumnCollection());
        }
コード例 #2
0
ファイル: AdvBandedListEditor.cs プロジェクト: noxe/eXpand
 protected override FilterColumnCollection CreateFilterColumnCollection() {
     var args = new CreateCustomFilterColumnCollectionEventArgs();
     if (CreateCustomFilterColumnCollection != null) {
         CreateCustomFilterColumnCollection(this, args);
     }
     if (args.FilterColumnCollection != null) {
         return args.FilterColumnCollection;
     }
     return base.CreateFilterColumnCollection();
 }
コード例 #3
0
 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;
     }
 }