DataGridView represents data fields and records as columns and rows, respectively. To display data, the grid should contain columns bound to the data source's fields. Grid columns are stored in the DataGridView.Columns collection and displayed in the same order as they were added to this collection.
An individual column is a GridColumn class descendant that corresponds to the type of data the column displays. Use columns of the TextColumn type to display text values and allow users to edit them. When a user activates a text column cell editor, the keyboard for text input appears.
A column type that allows you to define a custom template for column cells.
This example shows how to create grid columns that display and allow users to edit data of different types (text, numbers, dates and Boolean values). The specified collection contains columns bound to the data source fields (Product.Name, Product.UnitPrice, Quantity, Date and Shipped), and one unbound column (Total) that displays data values calculated based on the values of other columns.