Hi
you can use these codes after you r assigning datasource to the datagridview...
u can paste those codes next to
myDataGrid1.DataSource = dt
it will work fine... tested....
example code ::
DataTable dt = new DataTable();
dt.Columns.Add("column1", typeof(string));
for (int i = 0; i < 15; i++)
dt.Rows.Add("value " + i);
dataGridView1.DataSource = dt;
dataGridView1.FirstDisplayedScrollingRowIndex = 10;
dataGridView1.Rows[10].Selected = true;
dataGridView1.Rows[10].Cells[0].Selected = true;