Selection issues in Gantt Chart Light Library

The initial selection may not be highlighted in the view, and/or SelectionChanged event from a DataGrid-based control within Gantt Chart Light Library may occur twice when selection changes.

To resolve these situations, you can use the internal DataGrid for setting selection and handle selection events; moreover, you should set the initial selection only after the internal control has been loaded (for example, using the container Dispatcher):

Dispatcher.BeginInvoke((Action)delegate
{
    GanttChartDataGrid.DataTreeGrid.SelectedIndex = ...;
    GanttChartDataGrid.DataTreeGrid.SelectionChanged += ...;
});