If Statement in C

  • Thread starter Thread starter Vinaya12
  • Start date Start date
V

Vinaya12

Guest
There are 1094 records in the input file, while transforming all records are not displaying at once in DataGridView2.


It is due to If statement, if I comment out the If statement , the application runs as desired.


if (int.Parse(this.dataGridView2.Rows.Cells[1].Value.ToString()) >= 100000 || int.Parse(this.dataGridView2.Rows.Cells[1].Value.ToString()) <= 200000)

{

this.dataGridView2.Rows.Cells[12].Value = "I";

}

else

{

this.dataGridView2.Rows.Cells[12].Value = "A";

Continue reading...
 
Back
Top