AutoSizeCols or AutoSizeCol in c1FlexPivotPage1.FlexPivotGrid

Posted by: nitin on 28 May 2020, 4:08 am EST

    • Post Options:
    • Link

    Posted 28 May 2020, 4:08 am EST

    Hi,

    I am using c1FlexPivotPage1 in VB. I am inserting the RowFields, ValueFields programmatically. After the Pivot gets populated, the column width are default and not adjusting according width of the content.

    I tried c1FlexPivotPage1.FlexPivotGrid.AutoSizeCols but not showing any effect.

  • Posted 28 May 2020, 8:08 pm EST

    Hi Nitin,

    Please use the AutoSizeCols method as given below to achieve the desired result.

    Dim fp = _c1FlexPivotPage.FlexPivotEngine
    AddHandler fp.Updated, AddressOf FlexPivot_Updated  
    
    Private Sub FlexPivot_Updated(sender As Object, e As EventArgs)
    _c1FlexPivotPage.FlexPivotGrid.AutoSizeCols()
    End Sub
    
    

    I hope it help.

    If you need any other help, please let us know.

    Regards,

    Prabhat Sharma.

  • Posted 28 May 2020, 11:51 pm EST

    Hi,

    It worked. Thank you.

Need extra support?

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

Learn More

Forum Channels