ABSTRACT

Explicitly declared columns can be programmatically added to the DataGrid’s columns collection. The bottom column shown in Figure 16.1 is an explicitly declared column. These columns provide greater formatting flexibility than automatically generated columns. The collection is accessed with the DataGrid’s Columns collection. These explicitly declared columns are displayed (1) in an order corresponding to their order in the collection and (2) before auto-generated columns. Note that the auto-generated columns are not added to the columns collection. The types of columns are described in Figure 16.2.