title: Grid binding in a for loop
body: <p>I am developing a website in which I need to bind a grid several times {inside a for loop}
  and as expected the grid overwrites the previous values and preview s the latest iteration result</p>
  
  <p>You may need the code for help.Here it is:-</p>
  
  <pre><code>for (Int32 i = 0; i &lt; k.Length; i++)
      {
          business.clsplugins obj = new business.clsplugins();
          List&lt;business.clspluginsprp&gt; objprp = new List&lt;business.clspluginsprp&gt;();
          Int32 z = Convert.ToInt32(k.GetValue(i));
          objprp = obj.fnd_plugins(z);
          GridView2.DataSource = objprp;
          GridView2.DataBind();
      }
  </code></pre>