private void btnLabSample_Click(object sender, EventArgs e) { curLabTechReqIndex = grdViewLabTestReq.RowCount; frmLabTechReqSample fLabTechReqSample = new frmLabTechReqSample(); frmLabTechReqSample.intLabTechReqPK = int.Parse(drLabTechReq.ItemArray[0].ToString()); fLabTechReqSample.ShowDialog(); BindingLabTechReq(); }