FlexGrid for WPF | ComponentOne
C1.WPF.FlexGridFilter.4.6.2 Assembly / C1.WPF.FlexGrid Namespace / C1FlexGridFilter Class / Editor Property
Example

In This Topic
    Editor Property (C1FlexGridFilter)
    In This Topic
    Gets the System.Windows.Controls.Control used to edit the filter parameters.
    Syntax
    'Declaration
     
    Public Property Editor As ColumnFilterEditor
    public ColumnFilterEditor Editor {get; set;}
    Remarks

    This property is useful if you want to customize the appearance of the built-in filter editor.

    By default, the filter editor uses the style properties set on the grid (e.g. Background, FontFamily, FontSize, etc). In some cases, you may want to override this behavior and specify the editor's properties directly.

    Example
    The code below creates a grid and a filter, and then customizes the appearance of the filter editor by setting its Background and FontSize properties:
    // create and populate the grid
    var flex = new C1.Silverlight.FlexGrid.C1FlexGrid();
    flex.ItemsSource = Product.GetProducts(200);
    LayoutRoot.Children.Add(flex);
                
    // create the filter and customize the filter editor
    var filter = new C1.Silverlight.FlexGrid.C1FlexGridFilter(flex);
    filter.Editor.Background = new SolidColorBrush(Colors.Red);
    filter.Editor.FontSize = 16;
    See Also