ComponentOne True DBGrid for WinForms
Changing the Filter Language
True DBGrid for WinForms Task-Based Help > Changing the Filter Language

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. Confirm that the AllowFilter property is set to True.
  3. Click the drop-down arrow next to the Language property and select a language (for example, Danish).
  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.C1TrueDBGrid1.AllowFilter = True
Me.C1TrueDBGrid1.Language = C1.Util.Localization.Language.Danish

To write code in C#

C#
Copy Code
this.c1TrueDBGrid1.AllowFilter = true;
this.c1TrueDBGrid1.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.