private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
string ss = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
string gs = dataGridView1.Rows[e.RowIndex].Cells["EmployeeID"].Value.ToString();
Class1 test = new Class1();
DataSet ds = test.GetbyID(gs);
textBox1.Text = ds.Tables[0].Rows[0][0].ToString();
textBox2.Text = ds.Tables[0].Rows[0][1].ToString();
}
No comments:
Post a Comment