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.

Select DataBoundGrid Row

Thread ID:

Created:

Updated:

Platform:

Replies:

10277 Jan 28,2004 09:07 AM Jan 28,2004 09:59 AM Windows Forms 2
loading
Tags: GridControl
Jose Luis Melo
Asked On January 28, 2004 09:07 AM

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 09:15 AM

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 09:59 AM

Thats it... Thanks a lot.

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.

;