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.

Focus

Thread ID:

Created:

Updated:

Platform:

Replies:

18980 Sep 14,2004 11:38 PM Sep 15,2004 01:55 AM Windows Forms 1
loading
Tags: GridControl
arvind
Asked On September 14, 2004 11:38 PM

Hai, I am using GDBG and when the form load up I want the focus to be in the third column of the grid.

Administrator [Syncfusion]
Replied On September 15, 2004 01:55 AM

At the bottom of Formload, try grid.ForceCurrentCellMoveTo = true; //may not be needed grid.CurrentCell.MoveTo(1,3); //can also set activate options if you want using 3rd parameter In addition to the above code, depending upon tab orders and parent controls on your form, you may have to make the grid the active control with code like this.ActiveControl = grid or calling grid.Focus() or something of that nature. But if it is just a grid directly on a form, the above is usually sufficient.

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.

;