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
435
Pivot commad
posted

Hi

I try use method PivotGrid() from source code on event ResultChanged on my xamDataGird.

        void DS_ResultChanged(object sender, AsyncCompletedEventArgs e)

        {

            this.DS.PivotGrid();

        }

And error:

Cannot evaluate expression because the current thread is in a stack overflow state

Or another error:

Object reference not set to an instance of an object 

Source: InfragisticsWPF4.Controls.Grids.XamPivotGrid.v11.1

Is on XamPivotGrid some other event where i can call PivotGrid command?

Thanks

Parents
No Data
Reply
  • 7922
    Verified Answer
    posted

    Hi

    The ResultChanged event is not suitable for PivotGrid() command because you will fall in infinity loop because PivotGrid() command makes control to swap axis and raise ResultChanged event again. So you should look for another place to call this command.

    If you tell me your user case may be I will be able to help you.

     

     Todor

Children