Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableStyleOptions Class

Contains table style options.

#Declaration

TypeScript
export class TableStyleOptions

#Remarks

Specify the tableStyleOptions property to apply/remove special formatting from the first, last, and odd columns and rows.

Note

Style options do not affect table appearance if the Normal Table or Grid Table Light style is applied to the table.

The following example applies special formatting to the first column and row of a table:

js
var subDocument = richEdit.selection.activeSubDocument;
var table = subDocument.tables.getByIndex(0);
if (table != null) {
    table.styleName = 'Grid Table 4 Accent 4';
    table.tableStyleOptions = { bandedColumns: false, bandedRows: false, firstColumn: true,
                                headerRow: true, lastColumn: false, totalRow: false }
}

#Properties

#bandedColumns Property

Specifies whether to apply special formatting to odd columns.

#Declaration

TypeScript
bandedColumns: boolean

#Property Value

Type Description
boolean

true to apply special formatting to odd columns; otherwise, false.

#bandedRows Property

Specifies whether to apply special formatting to odd rows.

#Declaration

TypeScript
bandedRows: boolean

#Property Value

Type Description
boolean

true to apply special formatting to odd rows; otherwise, false.

#firstColumn Property

Specifies whether to apply special formatting to the first column.

#Declaration

TypeScript
firstColumn: boolean

#Property Value

Type Description
boolean

true to apply special formatting to the first column; otherwise, false.

#headerRow Property

Specifies whether to apply special formatting to the first row.

#Declaration

TypeScript
headerRow: boolean

#Property Value

Type Description
boolean

true to apply special formatting to the first row; otherwise, false.

#lastColumn Property

Specifies whether to apply special formatting to the last column.

#Declaration

TypeScript
lastColumn: boolean

#Property Value

Type Description
boolean

true to apply special formatting to the last column; otherwise, false.

#totalRow Property

Specifies whether to apply special formatting to the last row.

#Declaration

TypeScript
totalRow: boolean

#Property Value

Type Description
boolean

true to apply special formatting to the last row; otherwise, false.