programmatically refreshing a datagrid in asp.net
<p>I have an asp.net webpage that does a bunch of (slow, hence the problem) calculations and dumps them all into a datagrid in a webpage.  I would like to be able to have the page show partial results.  </p>

<p>I have figured out how to re-update the grid every time a row is done, but the page still doesn't display the results until all the calculations are complete.  Does anyone know a call from asp.net that can tell the page to refresh itself?  </p>

<p>p.s. the update function I am currently using is as follows:</p>

<pre><code>    private void updateDisplay(DataTable outputTable)
    {
        if (outputTable.Rows.Count &gt; 0)
        {
            PlaceHolder1.Controls.Clear();

            PlaceHolder1.Controls.Add(new LiteralControl("&lt;br&gt;"));
            GridView myView = new GridView();
            myView.DataSource = outputTable;
            myView.DataBind();
            myView.Visible = true;

            PlaceHolder1.Controls.Add(myView);
        }
    }
</code></pre>
