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.
Unfortunately, activation email could not send to your email. Please try again.

Setting Cursor Position in Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

47190 Jul 30,2006 06:19 PM Jul 31,2006 01:07 AM Windows Forms 1
loading
Tags: GridControl
Tom Affholter
Asked On July 30, 2006 06:19 PM

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).

Thanks!

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

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.
http://www.syncfusion.com/Support/user/uploads/MaksGrid_1d5dd3ab.zip

Let me know if this helps.
Best Regards,
Haneef

CONFIRMATION

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.

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.

;