Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all
Friends! We have an app. produced using C#.NET 3.5. But we also face a weired problem and that is
when we navigate to a DataGridViewCell in one our app 's DataGridViews and enter a persian letter, the DataGridView doen 't go to edit mode and our entered string is 'nt shown in the DataGridViewCell; this occurs while we have set the EditMode property of the DataGrid View to EditOnKeystrokeOrF2. I 've test the problem in a test project that also contains a test DataGridView and again faced the same problem thus seemingly the problem doesn 't depend on our app. my tests show that when I enter strings and my lanuage is english or numbers and my language is persian/english, DataGridView operates normally(goes to edit mode and entered string is shown). this observations have confused me alot. please help me to solve this damn problem if you know the solution or have any useful idea worth to be tried.

Note: Persian letters are same as arabic plus {'پ', 'گ', 'ژ', 'چ'}

Some eccess info that mybe help:
1- when our keyboard language is persian the DataGridView goes to edit mode in string DataGridViewTextBoxColumns only if we press F2 key or click on the selected text DataGridViewCell belong to the column.[DataGridView 's EditMode property is set to EditOnKeystrokeOrF2]

2- we have made the DataGridView to Operate with Enter key such as Tab key; that 's after pressing Enter when the DataGridView has the focus, CurrentCell is set to the cell next to the former DataGridViewCell and not to its bellow DataGridViewCell as in ordinary

FRIENDS! EXCUSE MY VERBOSE QUESTION AND ALSO MY POOR ENGLISH. INFACT I 'M NOR A GOOD ESSAYIST, NOR A GOOD ENGLISH SPEAKER!

your help and answers is mostly approciated
thanx in advance
Posted
Updated 25-Jul-11 19:09pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900