We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to perform Select All programatically in pivotgrid?

Thread ID:

Created:

Updated:

Platform:

Replies:

145609 Jul 1,2019 07:21 AM UTC Jul 2,2019 10:17 AM UTC WPF 1
loading
Tags: PivotGridControl
Carlos Fernando Consigli
Asked On July 1, 2019 07:21 AM UTC

This is probably something really simple, but I could not find the solution neither in documentation nor forums: in this particular control (PivotGrid), how can I perform a programatic Select All?.
Thanks in advance. Greetings

Jagadeesan Pichaimuthu [Syncfusion]
Replied On July 2, 2019 10:17 AM UTC

Hi Carlos,

Thank you for contacting Syncfusion support.

We have analyzed the reported query “How to select the pivot grid cells by programmatically”. You can achieve this requirement by adding the specific grid ranges into the Selections property which is available in GridModel class. Now the PivotGrid loaded with some selections based on the given range in your application. 
  


Please refer the following code sample.
 
  
#MainWindow.xaml.cs 
  
        public MainWindow() 
        { 
            InitializeComponent(); 
            this.pivotGrid1.Loaded += PivotGrid1_Loaded; 
        } 
  
        private void PivotGrid1_Loaded(object sender, RoutedEventArgs e) 
        { 
            GridRangeInfo newrange = GridRangeInfo.Cells(5,2,3,4); 
            this.pivotGrid1.InternalGrid.Model.Selections.Add(newrange); 
        } 
  
  
  
If the above solution does not meet your actual requirement could you please share the detailed description about your requirement so that it could be helpful to provide the solution at the earliest.

Regards, 
Jagadeesan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon