DataControlCellType 枚举

定义

描述 DataControlFieldCell 对象的功能。Describes the function of a DataControlFieldCell object.

public enum class DataControlCellType
public enum DataControlCellType
type DataControlCellType = 
Public Enum DataControlCellType
继承
DataControlCellType

字段

DataCell 2

包含数据的 DataControlFieldCellA DataControlFieldCell that contains data.

1

作为表的页脚单元格的 DataControlFieldCellA DataControlFieldCell that is the footer cell of a table. 该单元格中的项不绑定到数据。Items in the cell are not bound to data.

Header 0

作为表的页眉单元格的 DataControlFieldCellA DataControlFieldCell that is the header cell of a table. 该单元格中的项不绑定到数据。Items in the cell are not bound to data.

注解

DataControlField使用的DataControlCellType对象和数据绑定控件使用枚举来标识单元格的类型, 并因此在呈现时应具有哪些特性。DataControlField objects and the data-bound controls that use them use the DataControlCellType enumeration to identify the type of cell, and therefore what attributes it should have when rendered. DataCell 单元格类型标识GridViewDetailsView控件中的数据绑定单元, 而标头和表尾单元格标识的单元格类型未绑定包含其他非数据绑定内容的数据单元。The DataCell cell type identifies a data-bound cell in a GridView or DetailsView control, whereas the Header and Footer cells identify cell types that are not bound data cells that contain other, non-data-bound content.

适用于

另请参阅