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

Is there any GridWrapCellBehavior option in PivotGridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

148449 Oct 20,2019 09:45 PM UTC Oct 29,2019 09:35 AM UTC WPF 3
loading
Tags: PivotGridControl
Carlos Fernando Consigli
Asked On October 20, 2019 09:45 PM UTC

When I'm using a PivotGridControl and get to the rightmost cell and press the right button, I don't want to move the cell selection to the leftmost cell of the following row.
I see that this behavior is already implemented in Windows Form Grid using GridWrapCellBehavior=None 
that's exactly what I'm trying to achieve in WPF PivotGridControl but couldn't find the property, if it exists. Is it possible to do that with this control?
Thanks in advance

Thirupathi Bala Krishnan [Syncfusion]
Replied On October 21, 2019 08:59 AM UTC

Hi Carlos, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed the reported query – “How to restrict the cell selection to the first column of next row”. You can achieve the same by using the WrapCellBehavior property which is available in the GridModelOptions class. If you want to restrict the cell selection, you should set the WrapCellBehavior property to ‘None’ inside the Loaded event handler. 
 
Please refer the following code sample. 
 
# MainWindow.xaml.cs

 
        public MainWindow() 
        { 
            InitializeComponent(); 
            pivotGrid1.Loaded += PivotGrid1_Loaded; 
        } 
 
        private void PivotGrid1_Loaded(object sender, RoutedEventArgs e) 
        { 
            pivotGrid1.InternalGrid.Loaded += InternalGrid_Loaded; 
        } 
 
        private void InternalGrid_Loaded(object sender, RoutedEventArgs e) 
        { 
            pivotGrid1.InternalGrid.Model.Options.WrapCellBehavior = Syncfusion.Windows.Controls.Grid.GridWrapCellBehavior.None; 
        }

 
 
If the above solution does not meet your actual requirement, could you please share the detailed description so that it could be helpful to provide the solution at the earliest.

Regards,
Thirupathi B.
 


Carlos Fernando Consigli
Replied On October 28, 2019 06:50 AM UTC

Excellent, thanks, that worked!

Thirupathi Bala Krishnan [Syncfusion]
Replied On October 29, 2019 09:35 AM UTC

Hi Carlos, 

We are glad that the reported issue has been resolved. Please get back to us if you require any further assistance from us. As always, we will be happy to assist you.

Regards,
Thirupathi B. 


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