How To Select a Cell in Code

Sep 5, 2008 at 3:39 PM

I haven't found how to select a cell programmatically. I know that the datagrid has the SelectedCells collection and its Add method requiers a DataGridCellInfo object.

For example, I need to select the cell of the third column and second row.

Sep 5, 2008 at 5:19 PM
How about,

DataGrid_Standard.SelectedCells.Add(new DataGridCellInfo(DataGrid_Standard.Items[1], DataGrid_Standard.Columns[2]));