foreach (DataGridViewRow dgvrow in dataGridView1.SelectedRows) { if (Convert.ToBoolean(dgvrow.Cells["chkbox"].Value) == true) { LOB = dgvrow.Cells["lOBDataGridViewTextBoxColumn"].Value.ToString(); POL_NUM = dgvrow.Cells["polNumDataGridViewTextBoxColumn"].Value.ToString(); POL_Effdate = Convert.ToDateTime(dgvrow.Cells["polEffDtDataGridViewTextBoxColumn"].Value); POL_Expdate = Convert.ToDateTime(dgvrow.Cells["polExpDtDataGridViewTextBoxColumn"].Value); tbl_pol_coll_agmt_dtls_id = Convert.ToInt32(dgvrow.Cells["TBL_POL_COLL_AGMT_DTLS_ID"].Value); if (MessageBox.Show("Would like to update the click yes!!", "Input Data", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes) { collServCall.UpdateInputPolicyData(tbl_pol_coll_agmt_dtls_id, LOB, POL_NUM, POL_Effdate, POL_Expdate); } } }
dataGridView1.Rows[index].ReadOnly = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)