/// <summary> /// Function to fill product,product code autocompletion /// </summary> /// <param name="isBatchName"></param> /// <param name="editControl"></param> public void FillBatch(bool isBatchName, DataGridViewTextBoxEditingControl editControl) { BatchBll BllBatch = new BatchBll(); try { Batch = BllBatch.BatchViewAllWithoutNA(); } catch (Exception ex) { MessageBox.Show("PO4:" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }