Table Object

Overview

The Table object encapsulates the attributes of a grid's <TABLE> tag. An instance of the Table object can be obtained via the property Grid.Table.

Member List

Properties


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

BGColor As String (Read/Write)
Specifies a value for the BGColor attribute of the <TABLE> tag.

Border As String (Read/Write)
"1" by default. Specifies a value for the BORDER attribute of the <TABLE> tag.

Caption As Object (Read-only)

Returns the Caption object that represents a <CAPTION> tag that may immediately follow the <TABLE> tag. Use this object to set your grid's title.

Although Caption is a read-only property, a direct assignment such as

Grid.Table.Caption = "Employees"

is acceptable as the Caption object exposes a default Value property.

When set via XML, the tag <TableCaption> must be used, not <Caption>, because the latter is being used as a sub-element of the <Column> element.


CellPadding As Integer (Read/Write)
Specifies a value for the CELLPADDING attribute of the <TABLE> tag.

CellSpacing As Integer (Read/Write)
Specifies a value for the CELLSPACING attribute of the <TABLE> tag.

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

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

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

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

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

Methods

This object has no methods.
Font Object Caption Object