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

Focus

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon