//load data private void PetMedicineStaff_Load(object sender, EventArgs e) { PetMedicineModel pmm = new PetMedicineModel(); medicinedataBindingSource.DataSource = pmm.GetAllPetMedicineToArrayList(); gcMedicine.DataSource = medicinedataBindingSource; }
// reload data private void btnRefresh_ItemClick(object sender, ItemClickEventArgs e) { PetMedicineModel pmm = new PetMedicineModel(); petStoreDataSet3BindingSource.DataSource = pmm.GetAllPetMedicineToArrayList(); gcMedicine.DataSource = petStoreDataSet3BindingSource; }
private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e) { PetMedicineModel pmm = new PetMedicineModel(); petStoreDataSet3BindingSource.DataSource = pmm.GetAllPetMedicineToArrayList(); gridControl1.DataSource = petStoreDataSet3BindingSource; }