Rearrange columns

So I have a ultragrid that looks like this

In the datasource I have:

  • Fiscal Period
  • Amount
  • Actual
  • Comments

programmed columns I have:

  • Month
  • Previous Budgeted

I would like to add previous budgeted before comments in the grid, is this possible? I tried:

dgvBudget.DisplayLayout.Bands[0].Columns["comments"].Header.VisiblePosition = 6;

Is this inside a customization? If so enter the screen in developer mode, move the column where you want it, right click save layouts, enter customization mode, change anything (a pixel position change of a control, a return in the script, anything) save. It should save your column order that way.

I am not able rearrange the columns in developer mode

That’s why I was trying to distinguish between developer mode and customization mode. Move the columns before you go tools -> customization mode

2 Likes

Does this set it as default for everyone? If so this was way easier than I was thinking lol.

yes once you enter customization mode and make a change and save it, it captures your personalization. it’s super hinky but it does work. For example if you do it on a screen without a customization selected. The screen will ask you to make one if you do save layouts. Not intuitive at all no

Thank you very much this solved my issue!

1 Like