System.Web.UI.WebControls.TemplateColumn Class

Represents a column type for the System.Web.UI.WebControls.DataGrid control that allows you to customize the layout of controls in the column.

See Also: TemplateColumn Members

Syntax

public class TemplateColumn : DataGridColumn

Remarks

Use the System.Web.UI.WebControls.TemplateColumn column type in a System.Web.UI.WebControls.DataGrid control to create a column with a customized control layout. You can provide a custom appearance for the heading section, the footer section, and the items section of the column by using the TemplateColumn.HeaderTemplate, TemplateColumn.FooterTemplate, and TemplateColumn.ItemTemplate properties, respectively. You can also control how an item being edited is displayed in the System.Web.UI.WebControls.TemplateColumn object by setting the TemplateColumn.EditItemTemplate property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0