Shovan Saha

Shovan Saha

  • 1.7k
  • 321
  • 53.4k

string to int problem

Sep 1 2017 2:19 PM
Does not work else statement. Please help me.
int countArmyNC = 0;
foreach (DataGridViewRow row in dataGridView1APen.Rows)
{
if (row.Cells[4].Value.ToString() == "‡mbv evwnbx (bb KwgkÛ)")
{
countArmyNC++;
}
else
{
countArmyNC = "";
}
}
 

Brought to you by:

Answers (9)