سلام
مشکل کد زیر چیه که ایراد زیرو میگیره

Object reference not set to an instance of an object

تو خط:
ch=(bool)dataGridView1.Rows[i].Cells[0].Value;

int rc = dataGridView1.Rows.Count;
bool ch = new bool();

for (int i = 0; i < rc-1; i++)
{

ch=(bool)dataGridView1.Rows[i].Cells[0].Value;

if (ch)
{
emailaddress += dataGridView1.Rows[i].Cells[3].Value.ToString()+",";
}

}


منمنونم