Advertisement
Guest User

Untitled

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