DataTable dt = new DataTable(); dt.Columns.AddRange( new DataColumn[] ... { new DataColumn("ID",Type.GetType("System.Int32")), new DataColumn("Name",Type.GetType("System.String")), } ); for ( int i = 0 ;i < 10 ;i ++ ) ... { DataRow drNew = dt.NewRow(); drNew["ID"] = i; drNew["Name"] = i.ToString(); dt.Rows.Add(drNew); } this .dataGridView1.DataSource = dt; DataRowView dv = this .dataGridView1.CurrentRow.DataBoundItem as DataRowView; if (dv != null ) ... { DataRow dr = dv.Row; }