/// <summary> /// Function to use the Batch Combo Fill based on the product /// </summary> public void batchcombofill() { try { BatchSP spBatch = new BatchSP(); DataTable dtblBatch = new DataTable(); dtblBatch = spBatch.BatchNoViewByProductId(decProductId); cmbBatch.DataSource = dtblBatch; cmbBatch.ValueMember = "batchId"; cmbBatch.DisplayMember = "batchNo"; } catch (Exception ex) { MessageBox.Show("POS:19" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }