Back to Devexpress

Table.ShowTableStyleRowStripes Property

officefileapi-devexpress-dot-spreadsheet-dot-table-5f7ab655.md

latest4.0 KB
Original Source

Table.ShowTableStyleRowStripes Property

Indicates whether alternate shading should be applied to the table rows.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool ShowTableStyleRowStripes { get; set; }
vb
Property ShowTableStyleRowStripes As Boolean

Property Value

TypeDescription
Boolean

true , to apply striped row formatting to the table; otherwise, false.

|

Remarks

To apply banding to rows in a table, set the ShowTableStyleRowStripes property to true and the Table.ShowTableStyleColumnStripes property to false. This formatting is used in tables by default.

To change the format of alternate row stripes, modify the TableStyleElementType.FirstRowStripe and TableStyleElementType.SecondRowStripe elements of the style applied to a table.

The TableStyleElement.StripeSize property of these table style elements allows you to specify the number of table rows to be displayed as odd and even row stripes. You can also specify the borders (TableStyleElement.Borders), background color (TableStyleElement.Fill) and font (TableStyleElement.Font) of row stripes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowTableStyleRowStripes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

spreadsheet-document-api-examples-part2/CS/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.cs#L104

csharp
// Enable banded column formatting for the table.
table.ShowTableStyleRowStripes = false;
table.ShowTableStyleColumnStripes = true;

spreadsheet-document-api-examples-part2/VB/SpreadsheetDocServerAPIPart2/CodeExamples/TableActions.vb#L98

vb
' Enable banded column formatting for the table.
table.ShowTableStyleRowStripes = False
table.ShowTableStyleColumnStripes = True

See Also

Spreadsheet Tables

Table Interface

Table Members

DevExpress.Spreadsheet Namespace