private void frmViewBatch_Load(object sender, EventArgs e) { DataTable dt = bllss4.getDetailsBatch(ID, partName); dataGridView1.DataSource = dt; }