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

Select DataBoundGrid Row

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

2 Replies

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

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

Thats it... Thanks a lot.

Live Chat Icon For mobile
Up arrow icon