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.

Grid Cell Focus and Locking

Thread ID:





7668 Oct 5,2003 01:05 AM Oct 5,2003 10:06 PM Windows Forms 2
Tags: GridControl
Asked On October 5, 2003 01:05 AM

I am trying to give a focus by code at a particular cell of my grid like the focus method of vb.net control ( ie textcontrol) to force a user to enter a specific value , but I don't find the correct way to do it. After that I need to lock the user into this cell until he has entered a correct value. Is there any body who can help me ? Thx Fabrizio

Administrator [Syncfusion]
Replied On October 5, 2003 04:50 PM

Call CurrentCell.MoveTo to set focus to a specific cell. If you do this from within Form.OnLoad you should also set ForceCurrentCellMoveTo = true. To ensure the user is locked in until he enters the correct value handle the CurrentCellValidating event. Stefan

Replied On October 5, 2003 10:06 PM

Tnx Stefan.


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.