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

GanttControl - GranttGrid

Thread ID:





121175 Nov 17,2015 11:59 AM UTC Nov 18,2015 06:21 AM UTC WPF 1
Tags: GanttControl
Yoann Bulourde
Asked On November 17, 2015 11:59 AM UTC


Do you know if it's possible to resize automaticly Gantt grid colum.
I try with GanttTreeColumn object from GanttGrid element, but this solution doesn't work.

An other question, I don't find exemple for sort GanttGrid element. Do you know if sort on grid colum is possible for GanttControl.

Y. Bulourde

Rachel A [Syncfusion]
Replied On November 18, 2015 06:21 AM UTC

Hi Yoann,

Thanks for contacting Syncfusion support.

Query1: How to resize the columns automatically in GanttGrid?

We can  resize the columns by dragging the columns in the GanttGrid(by dragging grid header) or setting the width for the columns like the following code example,


        private void Gantt_Loaded(object sender, RoutedEventArgs e)


            Gantt.GanttGrid.Model.ColumnWidths[1] = 200;

Query2: How to sort the columns in GanttGrid?

We can sort the column in GanttGrid by setting the AllowSort property as true as shown in the below code snippet. This property will sort the columns when you click on the column header.


       private void Gantt_Loaded(object sender, RoutedEventArgs e)


            Gantt.GanttGrid.AllowSort = true;



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