I tried it
but it does not work
the SelectedItem is null.
answered on 07 Jan 2010, 11:45 AM
I guess that either the itemToSelect is null or it is not present in the ItemsSource that the grid is bound to. Since you are using a DataView I guess the grid is bound to a list of DataRowView items. If that is the case you will need to find the corresponding DataRowView (the Select method return a DataRow) item and set this item as SelectedItem.