Greetings from Syncfusion.
Query 1: How can I change row height for GanttGrid in GanttControl?
We would like to inform you that you can change the row height of the GanttGrid using the RowHeight property of GanttControl as per in below code snippet.
|
ganttControl = new GanttControl
{
ItemsSource = (this.DataContext as ViewModel).TaskDetails,
RowHeight=100
}; |
Query 2: how can I hide gridlines in GanttGrid?
You can achieve this requirement by setting the border color in the QueryCellInfo event argument as per in below code snipper.
|
private void GanttControl_Loaded(object sender, RoutedEventArgs e)
{
ganttControl.GanttGrid.Model.QueryCellInfo += this.Model_QueryCellInfo;
ganttControl.GanttGrid.InternalGrid.InvalidateCells();
}
private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
var lightpen = new Pen(e.Style.Background, 0);
e.Style.Borders.Right = lightpen;
e.Style.Borders.Left = lightpen;
e.Style.Borders.Top = lightpen;
e.Style.Borders.Bottom = lightpen;
} |
Regards,
Ramya S