Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetTableView.Rows Property

Provides access to the Table View worksheet’s row collection.

#Declaration

Delphi
property Rows: TdxSpreadSheetTableRows read;

#Property Value

Type
TdxSpreadSheetTableRows

#Remarks

Use this property to manage and customize row objects in the current Table View worksheet.

The following code example demonstrates how to use the Rows property to customize the row’s appearance:

//...
var
  ATableView: TdxSpreadSheetTableView;
  ARow: TdxSpreadSheetTableRow;
//...
  ATableView := TdxSpreadSheetTableView(dxSpreadSheet1.ActiveSheet);
  if(ATableView.Rows[2] = nil) then
    begin
      ATableView.Rows.CreateItem(2);
// Creating the row object for individual customization
    end;
// An indexed access to the third row in a Table View
  ARow := ATableView.Rows[2];
  ARow.Style.Borders[bTop].Color := clBlue;
  ARow.Style.Borders[bTop].Style := sscbsMediumDashDotDot;
  ARow.Style.Borders[bBottom].Color := clBlue;
  ARow.Style.Borders[bBottom].Style := sscbsMediumDashDotDot;
  ARow.Style.Brush.Style := sscfsRevDiagonalStrip;
  ARow.Style.Brush.BackgroundColor := clHotLight;
  ARow.Style.Brush.ForegroundColor := clSkyBlue;

For additional information, refer to the Table Item Appearance Customization Level topic.

See Also