Exemplo n.º 1
0
 private void Profile_Load(object sender, EventArgs e)
 {
     dgvThongtin.DataSource = db.SelectAllKhachHang(email);
     txtHoTen.DataBindings.Add("Text", dgvThongtin.DataSource, "TenKH");
     txtDiaChi.DataBindings.Add("Text", dgvThongtin.DataSource, "DiaChi");
     txtSdt.DataBindings.Add("Text", dgvThongtin.DataSource, "SDT");
     txtSex.DataBindings.Add("Text", dgvThongtin.DataSource, "Gioitinh");
     dptNgaysinh.DataBindings.Add("Text", dgvThongtin.DataSource, "Ngaysinh");
     LoadAnh();
 }