/// <summary> /// Funtion to fill datagridview /// </summary> public void GridFill() { try { BatchBll BllBatch = new BatchBll(); List<DataTable> list = new List<DataTable>(); list = BllBatch.BatchSearch(txtBatch.Text.Trim(), cmbProductName.Text); dgvBatch.DataSource = list[0]; } catch (Exception ex) { MessageBox.Show("B7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }