Select a Specific Row in DataGrid at Form Load Time

  • Thread starter Thread starter Jian Dai
  • Start date Start date
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
 
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 :)
 
Back
Top