Skip to main content

TdxSpreadSheetTableView Class

A worksheet type (View) designed for tabular data visualization and processing.

Declaration

TdxSpreadSheetTableView = class(
    TdxSpreadSheetCustomView,
    IdxSpreadSheetCellStyleOwner,
    IdxSpreadSheetConditionalFormatting,
    IdxSpreadSheetConditionalFormattingOwner,
    IdxSpreadSheetViewData,
    IdxSpreadSheetTableView
)

Remarks

This class implements the main type of worksheets in the Spreadsheet control. The key elements of the Table View worksheet are cells arranged into columns and rows.

You can use a Table View worksheet to arrange, store, process, and display end-user data. To manage the data and accompanying settings, Table View worksheets use logical objects corresponding to visual elements of the table, such as cell, column, and row objects accessible via the corresponding properties.

The TdxSpreadSheetTableView class extends its ancestor with members allowing you to:

The TdxSpreadSheetTableView object is referenced by the Spreadsheet control‘s ActiveSheetAsTable property. As the name of this property suggests, it provides access to the currently active sheet within a workbook. To access non-active Table View worksheets, you can cast TdxSpreadSheetCustomView objects to the TdxSpreadSheetTableView type. Use the following code example to access any Table View worksheet:

//...
var
  ActiveTableView, ATableView: TdxSpreadSheetTableView;
//...
  ActiveTableView := dxSpreadSheet1.ActiveSheetAsTable;  // Accessing the currently active sheet within a workbook (without type conversion)
  ATableView := TdxSpreadSheetTableView(dxSpreadSheet1.Sheets[1]);  // Accessing the second sheet within a workbook

For additional information, refer to the Table View topic.

See Also