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
785
RowLayoutStyle preventing column sizing...
posted

I have isolated what I believe to be:

1. a bug

2. the lack, on my part, to properly setting of the billion settings found on a grid

I'm guessing it is me.  That's typically what my wife says at any rate.

Problem:

When I:

            ultraGrid.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.None;
            ultraGrid.DisplayLayout.Override.AllowColMoving = AllowColMoving.WithinBand;
            ultraGrid.DisplayLayout.Override.AllowRowLayoutColMoving = GridBagLayoutAllowMoving.AllowAll;

            ultraGrid.DataSource = _bindingData;
            ultraGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;


I can size columns, move them, but NOT stack them, etc.  Life is sort of good.  When I size the first few columns to be big enough to cause a horizontal scroll bar to appear and then scroll to the far right of the grid, I can STILL size, move, not stack, etc.  Life is still not bad.

When I change the first line to either:

            ultraGrid.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.ColumnLayout;

or

            ultraGrid.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.GroupLayout;

I can size columns, move them, and bonus ... stack them, etc.  Life is really good.  I like stacking columns.  When I size the first few columns to be big enough to cause a horizontal scroll bar to appear and then scroll to the far right of the grid, I can still size larger (but not smaller), move, and stack, etc.  Life stinks, it's not very good at all.

The bug here is that for some reason, the grid will allow me to size the columns bigger and smaller as long I do not have a horizontal scroll bar.  Once I get it and scroll, I will start to see columns that will only allow me to size them bigger but not smaller.

I need to stack columns and size both bigger and smaller.  Please advise.  Oh, I have this breaking in a test harness and if asked can upload it.  It is actually very easy to create:

  1. New form.
  2. Drop a grid on it.  Take all defaults, don't configure in the wizard.
  3. Anchor it.
  4. Create a data source of several columns.
  5. Bind.
  6. Set the settings above.
  7. Get yourself a scroll bar by making the columns big.

 

 

 

Parents Reply Children
No Data