I am bringing several different datasets back into a wingrid (one at a time). I call InitializeLayout to reset the display after each new dataset is bound to the grid. It tends to work fine, although occasionally TWO grids will show up in the single control. They contain the same data, although usually the bottom one has a scroll bar visible and is scrolled down, while the top one is entirely collapsed at the top of the control. The screenshot shows what happens if I drag the slider between the top down so that you can see both grids on the control.
I don't know what this is or why it happens only occasionally. How do I make this disappear (or prevent it from happening)?
It looks like something is creating another RowScrollRegion, though I'm not sure what that could be. You could try setting the MaxColScrollRegions and MaxRowScrollRegions:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.MaxColScrollRegions = 1; e.Layout.MaxRowScrollRegions = 1;}
-Matt
The MaxColScrollRegions did not affect the behavior.
The MaxRowScrollRegions DID fix the problem.
Also I had to set the 'Layout.ScrollBounds = ScrollBounds.ScrollToFill;' in order to keep that scroll bar off of the really short lists that didnt need it (as opposed to the default scroll to last item.
SO....I'm good to go.
Thanks!