ChildView doesn't obey the AllowColumnMove property

Posted by: dan-fp on 8 September 2017, 12:32 pm EST

  • Posted 8 September 2017, 12:32 pm EST

    If i set the the datasource property of the main sheet to a list of objects and each object has a list of objects the  child views get created correctly.  If i have also set the AllowColumnMove property on the spread to true the most parent view will move columns.  The child views don't move the columns; they will just multi-select.

    This is version 3 rc1.
  • Replied 8 September 2017, 12:32 pm EST

    Dan,


    This is correct behavior. We do not support users moving columns in children SheetView objects.

  • Replied 8 September 2017, 12:32 pm EST

    Dan -

    You can do this in the ChildWorkbookCreated event...

    Private Sub FpSpread1_ChildWorkbookCreated(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ChildWorkbookCreatedEventArgs) Handles FpSpread1.ChildWorkbookCreated
    e.Workbook.AllowColumnMove = True
    End Sub
  • Replied 8 September 2017, 12:32 pm EST

    I think this is an oversight.  The above works but why wouldn't it just obey the values in the parent? 

    thanks for the tip
  • Replied 8 September 2017, 12:32 pm EST

    This is the expected behavior.  The child workbook and child sheets are different entities.  Applying values to the parent will not affect the children.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels