How to set the current cell programatically in datagridview?

Apr 28 2006 12:01 PM

Hi everybody,

 

I tried the following code, but I still need to click on the cell before it is selected. Is there a way to make the a cell the selected...

 

dataGridView.CurrentCell = dataGridView.Rows[e.RowIndex].Cells[pathIndex];

Thanks in advance,

Elvia