We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display the Arabic number digits in Grid when the culture is Arabic?

Description:

By default, the native number digits of a particular culture language are not displayed in Grid since text is displayed using GridStaticCellRenderer. To reproduce the native number display in Grid, follow the given steps.

  1. Go to Control Panel.
  2. Select Region
  3. Change the Format as Arabic(Egypt).
  4. Click the Additional Settings button.
  5. In the Numbers tab, change the Use native digits option as National.
  6. Click the Apply button and then click the OK button.

Solution:

The native number digits of culture language, that is, Arabic numbers, can be displayed in grid cell by handling the DrawCellDisplayText event and displaying the text using TextRenderer.

C#

VB

Note: To display the Arabic native digits in GridGroupingControl, the TableControlDrawCellDisplayText event can be handled.

C#

VB

Screenshots:

 

Figure 1: GridControl

 

Figure 2: GridGroupingControl

Sample Links:

C# - Displaying_The_Arabic_Number_Digits_in_Grid_CS1269007616.zip

VB - Displaying_The_Arabic_Number_Digits_in_Grid_VB1192759562.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
4145 02/24/2015 02/24/2015 WinForms GridControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon