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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Cell Focus and Locking

Thread ID:





7668 Oct 5,2003 05:05 AM UTC Oct 6,2003 02:06 AM UTC WinForms 2
Tags: GridControl
Asked On October 5, 2003 05:05 AM UTC

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 08:50 PM UTC

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 6, 2003 02:06 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon