FlexSheet enables you to format its cells and content in these cells on the client-side. You can easily apply desired fill color on each cell, and change the font's size, style, color, or weight (bold/unbold). Additionally, underline, italicize or align the cells' text in the run-time. Moreover, it gives you the ability to set the desired display format for data in each cell, to Decimal, Number, Percentage or Currency formats.
Customize your FlexSheet control to change the appearance of the displayed data, and make the data stand out in a huge worksheet. For example, you might want to categorize region wise sales figures for your organization on quarterly basis for comparison. This is achieved through applyCellsStyle() method. The below example demonstrates this scenario on a FlexSheet control which displays hypothetical quarterly sales data for three products in different countries for the year 2015-16.
The following image shows a FlexSheet with buttons to change the formatting of the cells and data in them.
The below image shows how the FlexSheet appears after applying formatting to its cells.
The following code examples demonstrate how to apply styles in FlexSheet.
FormatController.cs
C# |
Copy Code
|
---|---|
public class FormatController : Controller { // GET: Format public ActionResult FormatIndex() { return View(); } } |
FormatCells.cshtml
Explore the detailed demo samples for formatting cells in FlexSheet at: