private void HienThiDonViTinh(int IDDonViTinh)
        {
            cbbDonViTinh.Properties.DataSource    = busDVT.GetData();
            cbbDonViTinh.Properties.ValueMember   = "IDDonViTinh";
            cbbDonViTinh.Properties.DisplayMember = "TenDonViTinh";
            DataTable dt = busDVT.GetDataByID(IDDonViTinh);

            cbbDonViTinh.EditValue = cbbDonViTinh.Properties.GetKeyValueByDisplayText(dt.Rows[0]["TenDonViTinh"].ToString());
        }
 public List <DonViTinh> DonViTinh_GetData()
 {
     return(DonViTinh_bus.GetData());
 }
 private void HienThiDonViTinh()
 {
     cbbDonViTinh.Properties.DataSource    = busDVT.GetData();
     cbbDonViTinh.Properties.ValueMember   = "IDDonViTinh";
     cbbDonViTinh.Properties.DisplayMember = "TenDonViTinh";
 }
示例#4
0
 private void HienThi()
 {
     msdsDonViTinh.DataSource = bus.GetData();
 }