Column Width

Posted by: maggiemae on 8 September 2017, 12:49 pm EST

  • Posted 8 September 2017, 12:49 pm EST

    In the sample HierarchyVB the relationship is three tier and all columns (those in Parent, Child and Grandchild) appear to have a set column width.  In the sample code I see where three columns are getting their width set on the FrmHierarchy_Load.  Where are the column widths being set for the grandchild view?  I'm working on a project with a three tier view and need to format the column widths in my grandchild view.
  • Replied 8 September 2017, 12:49 pm EST

    It looks like they are set in the SetChildViewStyle sub routine.
  • Replied 8 September 2017, 12:49 pm EST

    I don't see that sub routine in my sample.  I am using FarPoint Technologies\Spread.WinForms.v25 for Visual Studio 2005\v2.5.2010\Samples\Vb\HierarchyVB
  • Replied 8 September 2017, 12:49 pm EST

    I apologize.  I thought you were looking at the hierarchy example in the demo.  In this example they are not setting the widths in the children.  If you want to do so you can use the ChildViewCreated event...

    e.SheetView.Columns(0).Width = 200
Need extra support?

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

Learn More

Forum Channels