DataControlFieldCell Class
Represents a cell in the rendered table of a tabular ASP.NET data-bound control, such as DetailsView or GridView.
Assembly: System.Web (in System.Web.dll)
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] public ref class DataControlFieldCell : public TableCell
<asp:DataControlFieldCell />
The DataControlFieldCell class is a strongly typed TableCell class that represents a cell in ASP.NET data-bound controls that render their contents in a tabular layout, such as GridView and DetailsView.
The DataControlField object that contains the DataControlFieldCell object controls how the cell is rendered by applying styles to the cell. You can access the containing DataControlField object using the ContainingField property.
The following code example demonstrates how a DataControlFieldCell object can be used and manipulated by a class that derives from DataControlField. The RadioButtonField class adds a RadioButton control to each DataControlFieldCell object in its InitializeCell method, and later checks the value of the RadioButton control in the ExtractValuesFromCell method. This example is part of a larger example provided for the DataControlField class.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.Web.UI::Control
System.Web.UI.WebControls::WebControl
System.Web.UI.WebControls::TableCell
System.Web.UI.WebControls::DataControlFieldCell
System.Web.UI.WebControls::DataControlFieldHeaderCell
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.