Hello,
I found this article about excel navigation in ultrawingrid.
http://es.infragistics.com/community/forums/p/54541/281616.aspx#281616
While moving left and right, we try to put the grid cell into edit mode. To move right, we make sure if cursor is at end of text and then move on. To move left, we will like to make sure if cursor is at beginning. It is tough to find beginning of text if there is a mask on the editor because selectionstart may never show up as 0 unless we enter the maximum no: of characters allowed. Question is how do we find out if cursor is at beginning for such editors?
Thanks,
Sowmya
Hello Sowmya,
The ($) appears in edit mode? I recommend using a format string eg. ($####.##) that way the literal is only displayed when not in edit mode. You will still have the expected behavior when the cursor is before the first digit.
Let me know if you have any questions regarding this matter.
Thank you very much, Michael. This works. There is one more thing to this. The editor in the grid has a literal character in it. ($). I do not want to add that to the list of DisplayCharBase. I am not able to access types like Infragistics.Win.UltraWinMaskedEdit.DecimalSeparatorChar or LiteralSeparatorChar. If I could, I can avoid adding these to the list.
I attached a sample that demonstrates if the cursor is located at the beginning (left side) of the UltraNumericEditors or not.
You start by creating a method that returns a boolean to iterate through the list of display characters within the editor. That way you can check if the cursor is at the far most left of the value then it will return true, otherwise make it return false.
Please review my sample and let me know if you have any questions.