How To Add In List Array Using Loop I am Getting Error?
<p>Hi all i am getting only one value in list array it is not adding rows in it.. how to add rows in list array ?</p>

<pre><code>for(int a=0;a&lt;_dt.Rows.Count;a++)
{     
    double PW =Convert.ToDouble(_dt.Rows[a]["POWER"]);
    int VOL =Convert.ToInt32(_dt.Rows[a]["VOLTAGE"]);
    double PV = PW * VOL;
    List&lt;double&gt; res = new List&lt;double&gt;();
    res.Add(PV);
}
</code></pre>

<p>hopes for your suggestions..</p>

<p>Regards,</p>
