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
1750
expand from code
posted

Hi,

I use the following code (found in this forum)in order to expand dimensions from code :

        void pivotGridMap_LayoutLoaded(object sender, EventArgs e)

        {

            foreach (PivotHeaderCell cell in pivotGridMap.GridLayout.RowHeaderCells)

            {

                if (cell.IsToggleVisible && cell.IsExpanded == false)

                {

                    cell.IsExpanded = true;

                    return;

                }

            }

        }

This works ok if I have only one dimension to expand.
My problem is when I have more than one I get an exception :

"An item with the same key has already been added."

Any ideas ?
Thank you
Dimitris 

Parents Reply Children
No Data