DataGrid Control (Windows Forms)

NoteNote

The DataGridView control replaces and adds functionality to the DataGrid control; however, the DataGrid control is retained for both backward compatibility and future use, if you choose. For more information, see Differences Between the Windows Forms DataGridView and DataGrid Controls.

The Windows Forms DataGrid control provides a user interface to ADO.NET datasets, displaying tabular data and enabling 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

Topic Location
How to: Create Master-Details Lists with the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Add Tables and Columns to the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Bind the Windows Forms DataGrid Control to a Data Source Using the Designer Windows Forms Controls
How to: Format the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Create Master-Details Lists with the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Add Tables and Columns to the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Bind the Windows Forms DataGrid Control to a Data Source Using the Designer Windows Forms Controls
How to: Format the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Create Master-Details Lists with the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Add Tables and Columns to the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Bind the Windows Forms DataGrid Control to a Data Source Using the Designer Windows Forms Controls
How to: Format the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Format the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Create Master-Details Lists with the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Add Tables and Columns to the Windows Forms DataGrid Control Using the Designer Windows Forms Controls
How to: Bind the Windows Forms DataGrid Control to a Data Source Using the Designer Windows Forms Controls
How to: Format the Windows Forms DataGrid Control Using the Designer Windows Forms Controls

Reference

  • DataGrid
    Provides an overview of the DataGrid class.
  • DataSource
    Provides details about using this property to bind the DataGrid control to data.

See Also

Concepts

Differences Between the Windows Forms DataGridView and DataGrid Controls

Other Resources

DataGridView Control (Windows Forms)