private void UpdateRefillDatagrid() { try { //Fill the data grid with refills PharmacyDataTier aPharm = new PharmacyDataTier(); DataSet ds1 = new DataSet(); ds1 = aPharm.GetRefills(myPrescriptionID); dgvRefills.DataSource = ds1.Tables[0]; } catch (Exception ex) { string myException = ex.ToString(); MessageBox.Show(myException, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }