Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Excel navigation in UltraWingrid
posted

Hello,

I found this article about excel navigation in ultrawingrid.

http://ko.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

Parents
  • 29105
    Suggested Answer
    Offline posted

    Hello,

    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.

    WindowsFormsApplication283.zip
Reply Children