c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -


when using devexpress, see error:

devexpress.wpf.grid.infinitegridsizeexception unhandled message="by default, infinite grid height not allowed since grid rows rendered , hence grid work slowly. fix issue, should place grid container give finite height grid, or should manually specify grid's height or maxheight. note can avoid exception setting gridcontrol.allowinfinitegridsize static property true, in case grid run slowly."

the problem dxgrid has infinite height.

to fix, set height non-infinite.

snoop absolutely invaluable this:

enter image description here

if "height" xaml element infinite (i.e. 0 or nan), can set using one of following:

  • option 1: height="{binding path=actualheight, relativesource={relativesource mode=findancestor, ancestortype=uielement}}"
  • option 2: verticalalignment="stretch"
  • option 3: height="auto"

hint: use verticalalignment="stretch" if child of grid <rowdefinition height="*">, , binding relativesource... elsewhere if doesn't work.

but if parent control has infinite height?

if parent control has infinite height, have bigger problem. have keep setting height of each successive parent, until hit control non-infinite actualheight.

appendix a: related posts


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

PySide and Qt Properties: Connecting signals from Python to QML -