officefileapi-devexpress-dot-spreadsheet-dot-table-5f7ab655.md
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
bool ShowTableStyleRowStripes { get; set; }
Property ShowTableStyleRowStripes As Boolean
| Type | Description |
|---|---|
| Boolean |
true , to apply striped row formatting to the table; otherwise, false.
|
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.
// Enable banded column formatting for the table.
table.ShowTableStyleRowStripes = false;
table.ShowTableStyleColumnStripes = true;
' Enable banded column formatting for the table.
table.ShowTableStyleRowStripes = False
table.ShowTableStyleColumnStripes = True
See Also