DataGrid1 . CurrentRowIndex =
(( DataSet )DataGrid1 . DataSource) . Tables[ 0 ] . Rows . Count - 1 ;