Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1210
UltraPivotGrid: Is there an event that fires when it completes rendering?
posted

I am expanding rows to level 1 in my PivotGrid. I put the code in the InitializeRow event of the grid:

If e.Row.IsExpandable AndAlso
               Not e.Row.Expanded AndAlso
               Not myFDS.IsAsyncOperationPending AndAlso
               e.Row.Tuple.Members(e.Row.MemberIndex).Depth = 0 Then
                myFDS.ExpandAxisTupleMemberAsync(Infragistics.Olap.AxisType.Row, e.Row.TupleIndex, e.Row.MemberIndex, True, upgCube)
            End If

This works as expected. 

The problem is InitializeRow also fires when the user collapses rows and then this code should not execute. I could just have a Boolean that is set when the grid completes rendering and add that to above code. But I cannot find an event, on either the grid or the FlatDataSource, that fires when rendering is complete.

Alternatively I could move above code out of InitializeRow, if that makes sense.

Anybody have a suggestion as how to what the best way here is?

Thanks,

Trausti