Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

If Statement in C

$
0
0

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[i].Cells[1].Value.ToString())>= 100000 || int.Parse(this.dataGridView2.Rows[i].Cells[1].Value.ToString())<= 200000)

                    {

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

                    }

                   else

                    {

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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>