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
175
Forbid deletion pivot items
posted

Hi,

I use pivot grid without XamPivotDataSelector (Columns, Rows and Measures values are hardcoded). How to forbid deletion the pivot items (rows, columns, measures) from header areas?  The way like ((DataSourceBase)pivotGrid.DataSource).AreaFieldSettings.AllowRowsEditing = false is not appropriate, because it is needed to reorder the columns using drag'n'drop.

Parents
  • 138253
    Offline posted

    Hello Ilya,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the Columns, Rows, Measures and Filters CollectionChanging events and cancel the action. I also handled the XamPivotGrid’s PivotItemDragEnter event and change Delete action areas to None action. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamPivotGridForbidDeletion.zip
Reply Children