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 NumberColumn type to display numbers and allow users to edit them. When a user activates a number column cell editor, the keyboard 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.