Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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 using ADO.NET technology as exposed in System.Data and related namespaces in the .NET Framework class library. For more information on working with data, see Accessing Data (Visual Studio).

In Windows Forms applications, the primary user interface control for displaying data retrieved from databases is the DataGridView. For more information, see DataGridView Control (Windows Forms). 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 Windows Forms Data Binding.

For more information about creating and managing databases, writing stored procedures, and other related information, see SQL Server Projects and SQL Server Tutorials.

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.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft