Select a Specific Row in DataGrid at Form Load Time

J

Jian Dai

I have a DataGrid control in a Windows Form. At the time the form is
displayed, I would like to have a specific row (record) being selected and
highlighted. At form load time I can populate the data source of DataGrid
control. At what time (handler of which event) should I go through the
DataGrid control to locate the row and select specific record?

Thanks.

Jian Dai
 
A

Alok

After setting the data source of the grid,
get the currency manager of the grid's data source (using the form's binding
context method).
Once it is obtained set the Position property of the currency manager.

HTH :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top