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