Skip to main content

DataControlBase.AllowInfiniteGridSize Field

Gets or sets whether the infinite GridControl’s height is allowed.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public static bool AllowInfiniteGridSize

Field Value

Type Default Description
Boolean false

false to raise the InfiniteGridSizeException; otherwise, true.


In the case of the default value, the InfiniteGridSizeException is thrown if the GridControl’s height is infinite (for example, the grid is placed in a vertically oriented stack panel).

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