Logo FluentUI

DataGrid QML Type

A tabular data grid with sorting support. More...

Import Statement: import FluentUI.Controls 1.0

Properties

Detailed Description

DataGrid extends TreeDataGrid to provide a flat table view with sortable columns, configurable column widths, row selection, and alternating row colors. It supports smooth transition animations when data changes.

Property Documentation

alternatingRows : bool

Whether alternating rows use different background colors for improved readability.

columnWidths : list

The list of column width values. Each entry defines the width of the corresponding column.

model : var

The data model providing the table content. Typically a DataGridModel or a QAbstractItemModel.

selectionModel : ItemSelectionModel

The selection model that tracks the currently selected rows and columns.