Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Extra grid appearing in wingrid
posted

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)?

Parents
  • 37774
    Verified Answer
    posted

    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

Reply Children
No Data