Cell Object

Overview

The Cell object encapsulates the attributes of an individual <TD> or <TH> tag. An instance of the Cell object can be obtained via the properties Column.Cell, Column.Header and Column.Footer.

Member List

Properties


Align As String (Read/Write)
Specifies a value for the ALIGN attribute of a <TD> or <TH> tag. Possible values are "LEFT", "CENTER" and "RIGHT".

AltBGColor As String (Read/Write)
Specifies a value for the BGCOLOR attribute of <TD> tags for even rows. Use this property in tandem with BGColor to paint your grid rows with alternating colors.

BGColor As String (Read/Write)
Specifies a value for the BGCOLOR attribute of a <TD> or <TH> tag.

Class As String (Read/Write)
Specifies a value for the CLASS attribute of a <TD> or <TH> tag.

Custom As String (Read/Write)
Specifies a custom attribute and its value for a <TD> or <TH> tag.

Font As Object (Read-only)
Returns the Font object associated with this cell. Font encapsulates the attributes of a <FONT> tag that surrounds a value inside the cell.

Height As String (Read/Write)
Specifies a value for the HEIGHT attribute of a <TD> or <TH> tag.

InputMaxLength As Integer (Read/Write)
Obsolete. In AspGrid 3.0 this property was moved to the Column object. Supported for backwards compatibility only. See Column.InputMaxLength.

InputSize As Integer (Read/Write)
Obsolete. In AspGrid 3.0 this property was moved to the Column object. Supported for backwards compatibility only. See Column.InputSize.

InputUserAttributes As String (Read/Write)
Obsolete. In AspGrid 3.0 this property was moved to the Column object. Supported for backwards compatibility only. See Column.InputUserAttributes.

NoWrap As Boolean (Read/Write)
False by default. If set to True, adds a NOWRAP attribute to a <TD> or <TH> tag.

VAlign As String (Read/Write)
Specifies a value for the VALIGN attribute of a <TD> or <TH> tag. Possible values are "TOP", "CENTER" and "BOTTOM".

Width As String (Read/Write)
Specifies a value for the WIDTH attribute of a <TD> or <TH> tag.

Methods

This object has no methods.
Column Object Font Object