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

DataControlBase.AllowInfiniteGridSize Field

Gets or sets whether the infinite GridControl’s height is allowed. If true, the InfiniteGridSizeException is not raised.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public static bool AllowInfiniteGridSize

Field Value

Type
Boolean

Remarks

The default is false. In this case, if the GridControl’s height measures infinite, (for example, the grid is placed within a vertically oriented stack panel), the InfiniteGridSizeException is thrown.

To avoid the exception:

  • Use a container that limits the GridControl’s size, or
  • Set the MaxHeight property to a certain value in your GridControl, or
  • Set AllowInfiniteGridSize to true. In this case, the GridControl immediately generates rows for all records in a data source. Note this may cause performance issues if the data source contains a lot of records.
See Also