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.
Unfortunately, activation email could not send to your email. Please try again.

GanttControl - GranttGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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.

Thank 
Y. Bulourde

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

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,

[C#]

        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.


[C#]

       private void Gantt_Loaded(object sender, RoutedEventArgs e)

        {

            Gantt.GanttGrid.AllowSort = true;
        }


Regards,
Rachel.A


CONFIRMATION

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.

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.

;