Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this section, we learn how to use the concepts that we have discussed so far to implement a simple application that displays the most recent data in a GridView control from the database.
Consider a table called Sales that contains the sales data of some inventory items. The table gets updated often based on the sales of those items. The intent is that we need to display the most recent data from this table to the end user—that is, the data displayed should always be in sync with the data stored in the database table. How do we achieve this?