Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Re: Complex Filtering - Excel like Filetering in code

  •  04-17-2008, 8:54 AM

    Re: Complex Filtering - Excel like Filetering in code

    Auto Filtering (excel like) can be done through the DataGridContext.AutoFilterValues dictionary.

    The dictionary allows you to access and modify the list of AutoFilterValues for a given Column`s FieldName.

    So, here is a quick sample:

    DataGridContext context = DataGridControl.GetDataGridContext( myDataGridControl );
    context.AutoFilterValues["myColumnFieldName"].Add( "My new filter value" );

    For this to work, AutoFiltering must be enabled as indicated in the product documentation (section Basic Concepts/Manipulating Data/Filtering Data ).

     


    Marc Laroche
    Software Developer
    Xceed Software Inc.


    I don’t suffer from insanity, I enjoy every minute of it. - Unknown
    Filed under:
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.