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

Localization

Thread ID:

Created:

Updated:

Platform:

Replies:

45355 Jun 19,2006 10:28 AM UTC Jun 22,2006 06:29 AM UTC WinForms 4
loading
Tags: GridControl
Ronnie Kleinfeld
Asked On June 19, 2006 10:28 AM UTC

Hi, I''m trying to do some localization of the grid. I changed the RightToLeft property to true, this seems to work fine. When I type some letter in the cells, the letters are scrambled. Does the grid control support Localization, RightToLeft and Hebrew? Thanks Ronnie Kleinfeld

Administrator [Syncfusion]
Replied On June 19, 2006 07:03 PM UTC

Hi Ronnie, The Answer for your question is yes. The GridControl''s RightToLeft property value indicating whether control''s elements are aligned to supprt locales using right to left fonts and also set the couple property for Localization of the grid. Please find the code snippet below. //The GridControl''s RightToLeft property indicating whether control''s elements are aligned to supprt locales using right to left fonts this.gridControl1.RightToLeft = RightToLeft.Yes; //The Grid''s TableStyle''s RightToLeft property indicate if cell contents read from right to left. this.gridControl1.TableStyle.RightToLeft = RightToLeft.Yes ; Grid''s TableStyle''s CultureInfo property holds rules for parsing and formatting the cell''s value. this.gridControl1.TableStyle.CultureInfo = new System.Globalization.CultureInfo("he-IL"); Please take a look at the GridLocalization.zip sample that illustrates the above and let me know if this helps you. Thanks for your interest in Syncfusion products. Regards, Haneef

Ronnie Kleinfeld
Replied On June 20, 2006 07:27 AM UTC

Hi Haneef, Thanks for your reply. I tried the code you sent, but there is a problem. as you can see in the attachment, I entered some input for 3 cells. The first one is in English, there is no problem. The second is in hebrew, there is a problem, I don''t know if you know hebrew so I explain in the third cell. The third cell, I type number, I typed "1234" but as you can see is shows "2341". This will continue if I go to other cells as well. The problem is the same as in hebrew or RightToLeft. The first letter/number is OK and then it''s as if the computer pressed the "Home" key or the "End" key. Please tell me if there a solution for this problem. I want to buy and use this grid but this is a big probelm. Regards Ronnie Kleinfeld >Hi Ronnie, > >The Answer for your question is yes. The GridControl''s RightToLeft property value indicating whether control''s elements are aligned to supprt locales using right to left fonts and also set the couple property for Localization of the grid. Please find the code snippet below. > >//The GridControl''s RightToLeft property indicating whether control''s elements are aligned to supprt locales using right to left fonts >this.gridControl1.RightToLeft = RightToLeft.Yes; > >//The Grid''s TableStyle''s RightToLeft property indicate if cell contents read from right to left. >this.gridControl1.TableStyle.RightToLeft = RightToLeft.Yes ; > >Grid''s TableStyle''s CultureInfo property holds rules for parsing and formatting the cell''s value. >this.gridControl1.TableStyle.CultureInfo = new System.Globalization.CultureInfo("he-IL"); > >Please take a look at the GridLocalization.zip sample that illustrates the above and let me know if this helps you. > >Thanks for your interest in Syncfusion products. >Regards, >Haneef

Error32.zip

Administrator [Syncfusion]
Replied On June 21, 2006 03:20 PM UTC

Hi Ronnie, In general the orginal text box behaves better than the rich textbox with Hebrew and arabhic languages. By default the grid uses the Richtext box control for cell editing, but if you set UseRightToLeftCompatibleTextBox to true then the grid will do editing with orginal TextBox control instead. Try this code to enable the UseRightToLeftCompatibleTextBox property. this.gridControl1.Model.Options.UseRightToLeftCompatibleTextBox = true; Let me know if this helps. Best Regards, Haneef

Ronnie Kleinfeld
Replied On June 22, 2006 06:29 AM UTC

It works Thank you very much

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

;