Hi,
How can i implement this string
if (Convert.ToInt16(dataGridView1.Rows[p].Cells[7].Value) <= 7) so that i can have
if (convert.ToInt16(dataGridView1.Rows[p].Cells[7].Value) >= 3 but <=7) so it only counts values 4, 5 and 6
Thanks
Anthony
Add greater than equal to but less than equal to in string provided
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Subhendu DeRank #1,108 · 1.7K reputationPosted Dec 14, 2010, 3:58 AM EST
{
// do something
}
else if ((convert.ToInt16(dataGridView1.Rows[p].Cells[7].Value)>=3)&&(convert.ToInt16(dataGridView1.Rows[p].Cells[7].Value)<=7))
{// do something
}
Anthony Clarke99 reputationPosted Dec 14, 2010, 8:51 AM EST