Table of Contents
ColumnTemplates Property

Gets a collection of GridColumn objects that are used as templates for the real columns.

Syntax
 public GridColumnCollection ColumnTemplates { get; }
Remarks

In addition to the Columns collection, the grid also maintains ColumnTemplates collection. This collection contains GridColumn objects that can be used as template of grid columns in the Columns collection. These templates are used to specify appearance related settings. For example, if one wants all TextBoxColumns in a grid to use a textbox with black borders when editing cell data, he/she can define a TextBoxColumn in the grid's ColumnTemplates collection and sets TextBoxStyle to include black border settings on that column. At runtime, unless overridden on the target column, all TextBoxColumns in the grid will inherits this setting.

See Also