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.