How To check object Names In Loops : <p>I have 31 numericipdowns (nup1,nup2,nup3....nup31), I want to add this numericupdowns values in datagridview.i used "For" loop and "switch", now i want to make something like this:</p>

<pre><code>For(int i=1;i&lt;32;i==){
   if(nup+i.value&gt;0){
   dataGridView1.Rows.Add((nup+i).ToString(0)
   }
}
</code></pre>

<p>anybody can to help me?</p>
