Spread for WPF allows you to customize tables by configuring and applying different styles while working with spreadsheets. Table styles help you apply a consistent and visually appealing format to tables, which improves readability and data organization. A table can be styled in one of two ways: built-in or custom.
Built-in styles are pre-defined styles and include a variety of themes with different color schemes, font settings, borders, and other style options. To apply built-in styles, use the BuiltInTableStyles enumeration of the GrapeCity.Spreadsheet namespace.
The following example code applies the built-in style “TableStyleDark11” to the table.
Custom styles allow you to create your own style to meet specific formatting requirements. You can customize various table elements, such as header rows, column's color, fonts, etc., and use them to format the tables in the worksheet. To apply custom styles, use the TableStyleElementType enumeration of the GrapeCity.Spreadsheet namespace to create a custom style and then apply it to the table.
The following example code applies a custom style to the table.