You should use Convert.ToBoolean() to check if dataGridView checkBox is checked.
private void button2_Click(object sender, EventArgs e)
{
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (Convert.ToBoolean(row.Cells[1].Value))
{
// what you want to do
}
}
}