开发者

Error in populating Datagrid view

开发者 https://www.devze.com 2023-03-01 08:05 出处:网络
I have a database which contains Hebrew language(foreign characters) in it. When I populate it in grid view.开发者_Python百科

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号