How To Select a Cell in Code

Sep 5, 2008 at 2:39 PM
Hi,

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.

Regards,
Marco
Coordinator
Sep 5, 2008 at 4:19 PM
How about,

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