enveetee
2014-11-13T11:59:34Z
Hi Igor

I have a grid with 5 cols

The user can reorder them in any order they want

I want to implement a 'reset' to put them back into the default order

is there a single command, currently I am doing this

For n& = 1 To m_iGrid.ColCount
      m_iGrid.ColPos(n) = n&
Next n&


is this correct?
Igor/10Tec
2014-11-14T06:20:05Z
There is a better way - the LayoutCol property. It returns a string representation of the current column layout including column width and even visibility. You can save this string when your form is opened, and then assign the saved string to LayoutCol when you need to restore the original column layout.