Welcome to the Xceed Community | Help
Community Search  

Complex Filtering - Excel like Filetering in code

Sort Posts: Previous Next
  •  04-17-2008, 8:17 AM Post no. 11542

    Complex Filtering - Excel like Filetering in code

    Can Complex Filtering - Excel like Filetering be done in code not in xaml.

    and also Complex sorting in code

  •  04-17-2008, 8:54 AM Post no. 11546 in reply to 11542

    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 as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.