I have a grid and set it to add new row at bottom of grid bands by default and it works fine (there is a grid row at bottom of the bands that allows row addition). I can add. Everything works.
I added a context menu to enable/disable row addition => aka user may or may not want to see the row at bottom of screen.
On the context Menu: I do the following to disable row addition:
UltraGridLayout layout = FMECAGrid.DisplayLayout;
layout.Bands[1].Override.AllowAddNew = AllowAddNew.No;
...
layout.Bands[7].Override.AllowAddNew = AllowAddNew.No;
This works (no row at bottom of bands to add new row).
Now the user clicks the menu item to re-enable row addition and it executes:
layout.Bands[1].Override.AllowAddNew = AllowAddNew.Yes;
layout.Bands[7].Override.AllowAddNew = AllowAddNew.Yes;
But the row at bottom on each band to add the new row doesn't show up.
Is there a refresh or something I need to do to show the row at bottom of each band again.
ok, figured it out, need FixedAddRowOnBottom rather than Yes (it overwrote the
FixedAddRowOnBottom w/ the No, so ...). Not a problem.