A Living Data Connection

  • Thread starter Thread starter jp2msft
  • Start date Start date
J

jp2msft

With the control DataGridView1, I can fill it with data easily:

using (SqlDataAdapter da = new SqlDataAdapter(sqlText, sqlConnection))
{
DataTable table = new DataTable();
da.Fill(table);
DataGridView1.DataSource = table.DefaultView;
}

Now consider viewing your portfolio in Google Finance or Yahoo! Finance: The
stock price values for every item in your portfolio appear to update real
time! The current asking price of any stock updates without you having to
click the refresh button.

How can I get my tables to automatically update the controls on my forms? Do
I have to create and register some event with SQL Server, is this ability
built into the SqlDataAdapter, or ... something else?
 
Back
Top