Can't find what you're looking for?

Contact us or post in our forums and we'll help you find an answer.

AutoSize Columns in FlexPivotGrid


Setting the FlexPivotGrid’s AutoSizeCols property to “true” in the form’s Load event will not adjust the column’s width in relation to the data because the FlexGrid isn’t initialized until runtime. To make this property work as expected, use it as shown below in the Updated event of FlexPivot, which fires after the FlexPivot finishes updating its fields:

Dim fp = _c1FlexPivotPage.FlexPivotEngine
AddHandler fp.Updated, AddressOf FlexPivot_Updated  

Private Sub FlexPivot_Updated(sender As Object, e As EventArgs)
End Sub

Get the Latest Version of C1
Download the Free Trial Now