
TextBox | 889
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
TemplateColumn
System.Web.UI.WebControls (system.web.dll)
class
This class represents a type of column that can be added to the DataGrid control. A
TemplateColumn allows you to create fully customized output in the DataGrid by using
templates. These templates are defined by using the .aspx (not the properties of this
class), which is similar to the method used by the DataList and Repeater controls.
Templates allow you to combine several different fields in a single column and add
other HTML elements and ASP.NET controls.
In the TemplateColumn definition in the .aspx file, you can define up to four templates:
HeaderTemplate, ItemTemplate, EditItemTemplate, and FooterTemplate. Inside these template defini-
tions, you can insert data binding expressions or HTML and ASP.NET elements.
Hierarchy
System.Object ➝ DataGridColumn(System.Web.UI.IStateManager) ➝ TemplateColumn
TextAlign
System.Web.UI.WebControls (system.web.dll)
serializable
enum
This enumeration is used to set the CheckBox.TextAlign and RadioButton.TextAlign properties.
This value specifies whether text will be placed to the left or right of the control.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ TextAlign
Returned By
CheckBox.TextAlign ...