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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

gridGroupingControl with Gantt Control - Forms/WPF

Thread ID:





123519 Mar 24,2016 03:53 PM UTC Mar 29,2016 12:47 PM UTC WPF 1
Tags: GanttControl
Gregory Pe
Asked On March 24, 2016 03:53 PM UTC

how to connect data from gridGroupingControl 1
with Gantt Control

changes in the chart were written in the table


Santhiya Arulsamy [Syncfusion]
Replied On March 29, 2016 12:47 PM UTC

Hi Grzegorz,
Thanks for contacting Syncfusion support.

We have analyzed your requirement. In the sample data set bound to the GridGroupingControl, it is not compatible with GanttControl, so that need to parse the data set and convert it into the generic collection by using following steps.

Step 1:

Need to create a template class with properties to hold the each column values of DataSet.

Public class Model
// First column value holder
Public DataType ColumnName1{ get; set; }
Public DataType ColumnName2{ get; set; }
Public DataType ColumnNameN{ get; set; }

Step 2:

Generate a record for each row in the Dataset and add it into the collection.

ObservableCollcetion<Model> collection = new ObservableCollcetion<Model>();

Collection.Add(new Model()
ColumnName1 = GridGroupingControl.DataSet.Column1.
ColumnName2 = GridGroupingControl.DataSet.Column2.

Step 3:

Bind the collection to the GanttControl ItemsSource property.

Refer to the following code sample for further reference.


Santhiya A


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