Select a row in code - DataGrid

Are there a way to select a row in the grid in code?
I want to add an item to the datagrids datasource and then set the then select row to the new item.