|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Accessing and Displaying Data (Visual C#)
In Visual C# applications, you will typically connect to databases usingtechnology as exposed in and related namespaces in the .NET Framework class library. For more information on working with data, see .
In Windows Forms applications, the primary user interface control for displaying data retrieved from databases is the DataGridView. For more information, see. Connecting data sources to user interface controls such as text boxes and list boxes is greatly simplified through a feature known as data binding. When you bind a control to a field in a data source, changes made in one will automatically be reflected in the other. For more information, see .
For more information about creating and managing databases, writing stored procedures, and other related information, see SQL Server Tutorials.and
The following links contain information on using Visual Studio to access data:
On the internet, the Data Access and Storage Developer Center is continually updated with new articles and examples.