resize child column

Posted by: sgmicro on 8 September 2017, 1:32 pm EST

  • Posted 8 September 2017, 1:32 pm EST

    Hello,


    (Before i ask my question, I saw lot of post on this subject but they don't help me...)


     I'm trying to resize column in childView (hierarchical mode) but it doesn't work...
    I've wrote :  "grdCycle.Sheets[0].GetChildView(i, 0).Columns[3].Width = 800;" but child column is not resize...
    I put "grdCycle.ActiveSheet.DataAutoSizeColumns = false;" but it's the same thing...


    Remarks :
    - Resize f
    or the spread's column it's ok ("grdCycle.ActiveSheet.Columns[2].Width = 80;")
    - I could modify other porperty of child and it's ok (ex : "grdCycle.Sheets[0].GetChildView(i, 0).Columns[3].HorizontalAlignment = CellHorizontalAlignment.Right;")


    Thks

  • Replied 8 September 2017, 1:32 pm EST

    You need to set DataAutoSizeColumns on the child, not the parent.
  • Replied 8 September 2017, 1:32 pm EST

    so simple... big thanks


     

Need extra support?

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

Learn More

Forum Channels