Hi,
How to I set a column to display text right to left as I have a column that has Arabic text. (It is currently displaying the last letter of the text as the first letter. However if I were able to set righttoleft = true for that column, it would display correctly.)
I have set the grid property rightoleft as true, but this has no effect on the column in question.
I set the style of the column as FormattedText, unless there is some way to set the Formatted Text as righttoleft = true --- it does not display correctly.
If I set the style of the column to FormattedTextEditor - the words are all ordered incorrectly. If have to find some way to set the leftoright=true and the TextSectionBreakMode = OnlyWhenNecessary.
I forsee myselft having to use the FormattedTextEditor at some point as text will need to display in colour.
Hope someone can assist me with this.
Ahmed
Hi Ahmed,
There is currently no support for RightToLeft in the Infragistics WinForms controls.
The RightToLeft property that you see on the grid and the FormattedTextEditor control are properties on Control, so they are automatically inherited by every control. But the DotNet framework doesn't really provide any support for this, so the Infragistics controls do not support it at this time.
I find this strange as most of the "standard" VS2010 (and even earlier versions) have support for Right to Left (and Unicode).
In fact the DataGrid that ships with VS2010 displays the text perfectly. The only downside is that it is not as polished as the Infragistics Grid control.
Any chance we will see support in the future.
As a workaround --- Is there any way to keep the entrire column in edit mode all the time? If this is possible, I can get the text to display correctly.
Many thanks.
ahmuser said: I find this strange as most of the "standard" VS2010 (and even earlier versions) have support for Right to Left (and Unicode). In fact the DataGrid that ships with VS2010 displays the text perfectly. The only downside is that it is not as polished as the Infragistics Grid control.
Which controls have you tried this with? I'm pretty sure that it works okay for controls that use GDI text rendering, but those are controls that are basically just wrappers around the Windows classes. So, for example, it works with a TextBox, because the Inbox TextBox control is just a wrapper around the Windows TextBox. But RightToLeft doesn't seem to have any effect on controls that draw using GDI+, like the Label control.
I could be wrong, I don't claim to be an expert on RightToLeft, I'm just going by what some other developers here have told me after some research.
ahmuser said:Any chance we will see support in the future.
You should Submit a feature request to Infragistics. I can't give you any kind of estimate as to when, or if, this will ever be implemented. I honestly just don't know.
ahmuser said:As a workaround --- Is there any way to keep the entrire column in edit mode all the time? If this is possible, I can get the text to display correctly.
There might be a solution along these lines. If your cells are all just normal text cells (not dates or masked numeric cells, etc.), then you could use the UltraControlContainerEditor to place an inbox TextBox control into every column in the grid. This probably isn't a very efficient way to do things, but if your grid isn't huge and there aren't too many cells on the screen, it might work.
could you tell me, if there are any updates with support for RightToLeft in the Infragistics WinForms controls?
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.