You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
# WinForms DataGrid Localization
1
+
# How to Apply Localization for WinForms DataGrid?
2
2
3
3
This repository contains sample which shows localization of Syncfusion [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).
4
4
5
-
6
-
You can [localize](https://help.syncfusion.com/windowsforms/localization#localize-syncfusion-windows-forms-control-using-resx-file) the `WinForms DataGrid` by adding resource file for each language.
5
+
You can [localize](https://help.syncfusion.com/windowsforms/localization#localize-syncfusion-windows-forms-control-using-resx-file) the `DataGrid` by adding resource file for each language.
7
6
8
7
### Changing application culture
9
8
10
9
When you are changing the application culture, then you can localize the application based on application culture by creating .resx file.
11
10
11
+
#### C#
12
+
12
13
```csharp
13
14
publicpartialclassForm1 : Form
14
15
{
@@ -21,6 +22,19 @@ public partial class Form1 : Form
You can create .resx files for any languages by following steps,
@@ -29,8 +43,16 @@ You can create .resx files for any languages by following steps,
29
43
30
44
2. Add [Windows Forms Control Localization default resource files](https://github.com/syncfusion/winforms-controls-localization-resx-files) of libraries you are using into `Resources` folder.
31
45
46
+

47
+
32
48
3. Now, right click on `Resources` folder and select `Add` and then `New Item`. In the `Add New Item wizard`, select Resources File option and name the file name as `Syncfusion.SfDataGrid.WinForms.<culture name>.resx` for German culture. For example, you have to give name as `Syncfusion.SfDataGrid.WinForms.de-DE.resx` for `German` culture. In the same way, add new resource files for other libraries used in your application.
33
49
50
+

51
+
34
52
4. Now, select Add and add resource file for `German` culture in `Resources` folder.
35
53
36
-
5. Now, you can copy the key names from default resource files and change its corresponding value based on the culture.
54
+

55
+
56
+
5. Now, you can copy the key names from default resource files and change its corresponding value based on the culture.
57
+
58
+

0 commit comments