VGridLocalizer Class
A base class that provides necessary functionality for custom localizers of the Vertical Grid control.
Namespace: DevExpress.XtraVerticalGrid.Localization
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
Remarks
Note
There are controls that only satellite assemblies can translate (for example, the Search dialog in XtraReports). We recommend that you use satellite assemblies to translate the application. Also, note that satellite assemblies are ignored if you use a custom localizer.
For more information on utilizing the VGridLocalizer class, refer to the Localizing WinForms Controls via Localizer Objects document.
Example
The code below demonstrates how you can localize Vertical Grid‘s captions in the row header context menu.
using DevExpress.XtraVerticalGrid.Localization;
VGridLocalizer.Active = new MyVGridLocalizer();
class MyVGridLocalizer : VGridLocalizer {
public override string Language { get { return "English"; } }
public override string GetLocalizedString(VGridStringId id) {
switch (id) {
case VGridStringId.MenuPropertySortAscending: return "Sort Ascending";
case VGridStringId.MenuPropertySortDescending: return "Sort Descending";
case VGridStringId.MenuPropertyClearSorting: return "Clear Sorting";
case VGridStringId.MenuPropertyClearSortingAllProperties: return "Clear All Sorting";
default: return base.GetLocalizedString(id);
}
}
}
Inheritance
Object
XtraLocalizer
XtraLocalizer<DevExpress.XtraVerticalGrid.Localization.VGridStringId>
VGridLocalizer
See Also