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.
Syncfusion Feedback

Focus

Thread ID:

Created:

Updated:

Platform:

Replies:

18980 Sep 15,2004 03:38 AM UTC Sep 15,2004 05:55 AM UTC Windows Forms 1
loading
Tags: GridControl
arvind
Asked On September 15, 2004 03:38 AM UTC

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 05:55 AM UTC

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.

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

;