private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
int xyz = e.RowIndex;
DataRowView dr = (DataRowView)dataGridView1.Rows[xyz].DataBoundItem;
textBox1.Text = dr["EmpID"].ToString();
textBox2.Text = dr["EmpName"].ToString();
textBox3.Text = dr["EmpType_ID"].ToString();
}