System.Web.UI.WebControls.DayRenderEventArgs.Cell Property

Gets the System.Web.UI.WebControls.TableCell object that represents the cell being rendered in the System.Web.UI.WebControls.Calendar control.

Syntax

public TableCell Cell { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DayRenderEventArgs.Cell property to programmatically control the cell being rendered in the System.Web.UI.WebControls.Calendar control.

You can customize the contents of a cell by dynamically adding controls to the System.Web.UI.Control.Controls collection of the DayRenderEventArgs.Cell property.

Note:

Because the Calendar.DayRender event is raised while the System.Web.UI.WebControls.Calendar control is being rendered, you cannot add a control that can also raise an event, such as System.Web.UI.WebControls.LinkButton. You can add only static controls, such as System.Web.UI.LiteralControl, System.Web.UI.WebControls.Label, System.Web.UI.WebControls.Image, and System.Web.UI.WebControls.HyperLink.

Requirements

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