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.1.Core.dll


public static bool AllowInfiniteGridSize
Public Shared AllowInfiniteGridSize As Boolean

Field Value



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