Hi Ralf Meier,
Apologies, for not adding c#.net tag , as i had difficulty in adding c#.net tag.
I want to get the checkbox selected status in the toolstripbutton click event but eventhough i selected the checkbox its always returns false .
But if i use normal button its working properly .
The Above code sample will highlight my issue.
private void toolStripButton2_Click(object sender, EventArgs e)
{
List<datagridviewrow> rows_with_checked_column = new List<datagridviewrow>();
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (Convert.ToBoolean(row.Cells["chk"].Value) == true)
{
MessageBox.Show("Checked");
}
else
{
MessageBox.Show("not Checked");
}
}
}
</datagridviewrow></datagridviewrow>