Skip to main content
A newer version of this page is available. .

DashboardDesigner.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.v18.2.Win.dll

Declaration

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

Property Value

Type Default Description
Int32 -1

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 so that it displays 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