ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] - نسخه متنی

G. andrew Duthie; matthew Macdonald

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید









TemplateColumn

noshade="true" align="left" color="black">
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 definitions,
you can insert data binding expressions or HTML and ASP.NET elements.

public class 

TemplateColumn : DataGridColumn {
// Public Constructors
public

TemplateColumn ( );
// Public Instance Properties
public virtual ITemplate

EditItemTemplate {set; get; }
public virtual ITemplate

FooterTemplate {set; get; }
public virtual ITemplate

HeaderTemplate {set; get; }
public virtual ITemplate

ItemTemplate {set; get; }
// Public Instance Methods
public override void

InitializeCell (TableCell

cell , int

columnIndex , ListItemType

itemType );
// overrides DataGridColumn
}



Hierarchy


System.Object
DataGridColumn(System.Web.UI.IStateManager)
TemplateColumn


/ 873