I'm not clear on what the problem is. If you click on a cell in the grid and that cell goes into edit mode, then the cursor is automatically positioned at the point where you clicked.
Your code is explicitly selecting all of the text in the AfterEnterEditMode event. So all you have to do is NOT call that code.
When i single click the cell it goes to edit mode but the cursor always goes next to the first character.
For example the value in a cell is "Checking". I place the mouse pointer over "K" and single click the cell.
The cursor goes next to the first character "C" and not next to "K".
I want the cursor to go next to "K" when i single click.
Pls note when i single click the cell for the second time it is going next to "K".
Am i missing anything in my code or somewhere am i setting any property that affects this behavior?
Is this just a regular text cell? Maybe the behavior is different is the cell has a Mask applied or if it's a dropdown. I tried this with a normal text cell and it works fine for me.
Are you sure it isn't your code doing this? Your initial post says that you have code in AfterEnterEditMode that is explicitly setting the SelStart to 0, so that would do exactly what you are describing here.
If you take out the code and this is still happening in a normal text cell, then perhaps you are using an old version of the grid and this was a bug that has long-since been fixed.
I have the same problem, what happens is i have a grid contains a general string column. when i click on the cell to edit something it selects the whole text on the cell. And the cursor is missing while editing.
We cannot edit the middle of the text and unable to point the cursor at any position on the cell text. Even we point the middle of the text and hit backspace key it doesn't work and if we hit the delete key it start deletes from the first character of the cell text.
Pls help to resolve the issue
I'd like to help you resolve this issue, but I tried this out and it works correctly for me. So without knowing what is causing it, there's very little I can think of to help you.
I recommend that you get the latest service release, if you do not already have it.
How to get the latest service release - Infragistics Community
If that does not help, see if you can post a small sample project demonstrating the problem and I will be happy to take a look.