Articles in this section
Category / Section

How to localize when resource file present in different assembly or default namespace is not same as assembly name?

1 min read

By default, SfDataGrid reads the localization resource files based on assembly name from its default namespace. If you are having the localization resource file other than the executing assembly (Assembly.GetExecutingAssembly())or other than default namespace, then you have to pass the assembly having the resource file and it’s default namespace to  Syncfusion.UI.Xaml.Grid.GridResourceWrapper.SetResources method.

C#: 

public MainWindow()
{
  Syncfusion.UI.Xaml.Grid.GridResourceWrapper.SetResources(Application.Current.GetType().Assembly, "namespacename");
    InitializeComponent();
}

 

Sample:

WPF

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied