Skip to main content

DashboardViewer.GridBestFitMaxRowCount Property

Gets or sets the number of the Grid dashboard item’s data rows whose content is processed to apply best fit to columns.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v24.1.Win.dll

NuGet Package: DevExpress.Win.Dashboard

Declaration

[DefaultValue(1000)]
public int GridBestFitMaxRowCount { get; set; }

Property Value

Type Default Description
Int32 1000

An integer value specifying the number of data rows that are processed to apply best fit to columns.

Remarks

When applying the best fit feature to a column, the column is resized to display the complete contents of its header, totals, and data cells. The number of data rows taken into account for this calculation is specified by the GridBestFitMaxRowCount property.

  • If set to -1, all rows are processed.
  • If set to 0, the Grid ignores data cell content when applying best fit. In this case, columns are resized to fit the contents of their header and totals only.
  • If set to a positive integer, the Grid dashboard item processes the specified number of rows starting from the top visible row.
See Also