A Living Data Connection

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top