I have a database which contains Hebrew language(foreign characters) in it.
When I populate it in grid view.
开发者_Python百科It gets populated in reverse order(left to right)
For example: "כן" is getting populated as "ןכ"
Can i get Help??
Set the DataGridView
control's RightToLeft
property to RightToLeft.Yes
. This instructs the control that it should align itself to support locales that use right-to-left fonts (such as Hebrew).
The documentation is pretty explicit here:
The RightToLeft property is used for international applications where the language is written from right to left, such as Hebrew or Arabic. When this property is set to RightToLeft.Yes, control elements that include text are displayed from right to left.
You can do this either in the Visual Studio designer, or through code like so:
myDataGridView.RightToLeft = RightToLeft.Yes;
精彩评论