Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

DataGrid Control (Windows Forms)

Visual Studio .NET 2003

The Windows Forms DataGrid control provides a user interface to ADO.NET datasets, displaying tabular data and allowing for updates to the data source. When the DataGrid control is set to a valid data source, the control is automatically populated, creating columns and rows based on the shape of the data. The DataGrid control can be used to display either a single table or the hierarchical relationships between a set of tables.

In This Section

Introduction to the Windows Forms DataGrid Control
Describes the basic features of the DataGrid control.
Adding Tables and Columns to the Windows Forms DataGrid Control
Explains how to add tables and columns both in the designer and programmatically.
Binding the Windows Forms DataGrid Control to a Data Source
Shows how to bind an ADO.NET dataset to the DataGrid control.
Changing Displayed Data at Run Time in the Windows Forms DataGrid Control
Demonstrates how to change data programmatically in the DataGrid control.
Creating Master-Details Lists with the Windows Forms DataGrid Control
Shows how to display two tables, tied together with a parent/child relationship, in two separate DataGrid controls.
Deleting Columns in the Windows Forms DataGrid Control
Shows how to remove columns in the DataGrid control.
Formatting the Windows Forms DataGrid Control
Shows how to change the appearance-related properties of the DataGrid control.
Keyboard Shortcuts for the Windows Forms DataGrid Control
Lists shortcuts for navigating through the DataGrid control.
Responding to Clicks in the Windows Forms DataGrid Control
Describes how to determine which cell a user has clicked in the DataGrid control.
Validating Input with the Windows Forms DataGrid Control
Describes how to validate input in the dataset bound to the DataGrid control.

Related Sections

DataGrid Control Changes in Visual Basic .NET
Explains how the Windows Forms DataGrid control differs from the datagrid in Visual Basic 6.0.
DataGrid Class
Provides an overview of the DataGrid class.
Windows Forms Data Architecture
Provides links to topics on data binding in Windows Forms.
Introduction to Data Access with ADO.NET
Explains fundamental concepts of the ADO.NET data approach.
Walkthrough: Simple Data Access in a Windows Form
Describes a procedure that displays data from a single table on a DataGrid control.
DataGrid.DataSource Property
Provides details about using this property to bind the DataGrid control to data.
Introduction to the DataGrid Web Server Control
Describes basic features of the DataGrid Web server control.
Show:
© 2014 Microsoft. All rights reserved.