private void grd_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     frmWareHouseDetail frmWHDetail = new frmWareHouseDetail();
     frmWHDetail.IdMedicine = int.Parse(grd.Rows[e.RowIndex].Cells["idDataGridViewTextBoxColumn"].Value.ToString());
     frmWHDetail.medicineName = grd.Rows[e.RowIndex].Cells["nameDataGridViewTextBoxColumn"].Value.ToString();
     this.Close();
 }
Esempio n. 2
0
        private void grd_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmWareHouseDetail frmWHDetail = new frmWareHouseDetail();

            frmWHDetail.IdMedicine   = int.Parse(grd.Rows[e.RowIndex].Cells["idDataGridViewTextBoxColumn"].Value.ToString());
            frmWHDetail.medicineName = grd.Rows[e.RowIndex].Cells["nameDataGridViewTextBoxColumn"].Value.ToString();
            this.Close();
        }