Presumably
SendSMS()
does not return a value, so you should be using it like this:
if (dataGridView1[0, iRow].Value != DBNull.Value && dataGridView1[0, iRow].Value != null && dataGridView1[0, iRow].Value != null && dataGridView1[0, iRow].Value.ToString() != "0")
{
SendSMS(dataGridView1[0, iRow].Value.ToString());
}