HOw to get value from datagridviewcheckboxcolumn?
Are you looking for a way to get value from datagridviewcheckboxcolumn then read this thread to know how to get it
I have a datagridview(dgv) , in which i adding first column as dgvcheckboxcolumn and i am able to extract value of second column whose checkboxcell checked. but i am getting a different type of error that is "when i check 1st row checkbox its value not retrived but when i check any other row check box previously checked row value retrived" , but i want to extract instant value , i.e if i checked 1st rows's checkbox i want 1st rows 2nd column value.
here is my code i know something simple mistake i did but cant traced out ,
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
List<DataGridViewRow> rows_with_checked_column = new List<DataGridViewRow>();
foreach (DataGridViewRow row in dataGridView1.Rows)
if (Convert.ToBoolean(row.Cells[SerialNo.Name].Value) == true)
data = row.Cells.Value.ToString();
row.Cells[SerialNo.Name].Value = false;
ifile.IniWriteValue("Config Section", "INDENT_NO", data);
txtindentcode.Text = data;
txtfromstore.Text = fm;
txttostore.Text = to;