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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Select DataBoundGrid Row

Thread ID:





10277 Jan 28,2004 02:07 PM UTC Jan 28,2004 02:59 PM UTC WinForms 2
Tags: GridControl
Jose Luis Melo
Asked On January 28, 2004 02:07 PM UTC

Hi, I have a populated GridDataBoundGrid. How can select a row ? This is used when I open the window and the grid is populated. When the grid is shown to the user, I want the grid to have already a selected row. The selected row can be the first row, or any other. (my grid selects the intire row when I click on it). Thanks a lot, Jose Melo

Administrator [Syncfusion]
Replied On January 28, 2004 02:15 PM UTC

In your formload, try adding code like this.grid.ForceCurrentCellMoveTo = true; this.grid.CurrentCell.MoveTo(1,1);// or some other cell If the grid is not the active control, you might also want to set this.ActiveControl = this.grid if you want it to be the active one.

Jose Luis Melo
Replied On January 28, 2004 02:59 PM UTC

Thats it... Thanks a lot.


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