We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting Cursor Position in Cell

Thread ID:





47190 Jul 30,2006 10:19 PM UTC Jul 31,2006 05:07 AM UTC WinForms 1
Tags: GridControl
Tom Affholter
Asked On July 30, 2006 10:19 PM UTC

I have a maskedit cell to format a phone number in a grid (''(999) 999-9999). When I click in the phone column my cursor position is set to the spot I click. Also, if a user tabs to the cell, I want focus after the first paren. I tried using currentcellactivated then setting the position using: Me.grdPhone.ActivateCurrentCellBehavior = GridCellActivateAction.PositionCaret = 1

But it either never lets me leave position 1 or otherwise locks up the cell (can''t tell).


Administrator [Syncfusion]
Replied On July 31, 2006 05:07 AM UTC

Hi Tom,

You could do this by handling the GotFocus Event of the GridMaskedEditBox control. Please refer to attached sample, that helps you to set the cursor at first position.

Here is a sample.

Let me know if this helps.
Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon