ComponentOne FlexGrid for WinForms
FlexGrid for WinForms Task-Based Help / Changing the Filter Language
In This Topic
    Changing the Filter Language
    In This Topic

    To change the language used in the column filter editor, you can use the Language property.

    1. Right-click your grid and select Properties to view the Visual Studio Properties window.
    2. Set the AllowFiltering property to True.
    3. Click the drop-down arrow next to the Language property and select a language.
    4. Run the project and click the drop-down arrow on one of the column headers to open the column filter editor. The language of the column filter editor matches the language specified in the Language property.

    In Code

    Add the following code to the Form_Load event:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1FlexGrid1.AllowFiltering = True
    Me.C1FlexGrid1.Language = C1.Util.Localization.Language.Danish
    

    To write code in C#

    C#
    Copy Code
    this.c1FlexGrid1.AllowFiltering = true;
    this.c1FlexGrid1.Language = C1.Util.Localization.Language.Danish;
    

    This topic illustrates the following:

    Notice the language of the column filter editor matches the language specified in the Language property.