Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void dataGridViewX1_CellContentClick(object sender, DataGridViewCellEventArgs e)
- {
- int Index = dataGridViewX1.CurrentCell.RowIndex;
- textBoxStt.Text = dataGridViewX1.Rows[Index].Cells[0].Value.ToString();
- textBoxHoten.Text = dataGridViewX1.Rows[Index].Cells[1].Value.ToString();
- textBoxGioitinh.Text = dataGridViewX1.Rows[Index].Cells[2].Value.ToString();
- textBoxNgaysinh.Text = dataGridViewX1.Rows[Index].Cells[3].Value.ToString();
- textBoxTinhtrang.Text = dataGridViewX1.Rows[Index].Cells[4].Value.ToString();
- textBoxNoisinh.Text = dataGridViewX1.Rows[Index].Cells[5].Value.ToString();
- textBoxNghenghiep.Text = dataGridViewX1.Rows[Index].Cells[6].Value.ToString();
- textBoxDiachi.Text = dataGridViewX1.Rows[Index].Cells[7].Value.ToString();
- textBoxSodt.Text = dataGridViewX1.Rows[Index].Cells[8].Value.ToString();
- textBoxCha.Text = dataGridViewX1.Rows[Index].Cells[9].Value.ToString();
- textBoxMe.Text = dataGridViewX1.Rows[Index].Cells[10].Value.ToString();
- textBoxContrai.Text = dataGridViewX1.Rows[Index].Cells[11].Value.ToString();
- textBoxCongai.Text = dataGridViewX1.Rows[Index].Cells[12].Value.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement