Restrict SelectionMode as Single in WPF Gantt

23 Feb 20231 minute to read

To restrict the selection mode to single, set the ListBoxSelectionMode options of GanttGrid’s Model in the GanttControl loaded event.

The following codes illustrate this

<gantt:GanttControl x:Name="Gantt"
                    ItemsSource="{Binding TaskDetails}"

private void Gantt_Loaded(object sender, RoutedEventArgs e)
    this.Gantt.GanttGrid.Model.Options.ListBoxSelectionMode = Syncfusion.Windows.Controls.Grid.GridSelectionMode.One;