Is there any way to suppress the grid area when printing the GanttView?
Hi Richard,
You can accomplish this by setting the DisplayAreas property in the UltraGanttViewPrintDocument's InitializeGanttView event. This will only impact printing and should have no effect on the application's UI.
private void ultraGanttViewPrintDocument1_InitializeGanttView(object sender, Infragistics.Win.UltraWinGanttView.Printing.InitializeGanttViewEventArgs e) { e.Control.DisplayAreas = Infragistics.Win.UltraWinGanttView.DisplayAreas.TimelineOnly; }
Please try this out and let me know whether it works for you.
Your code suggestion definitely works, however, since there's nothing on the Gantt chart that identifies each item, I ended up setting the Visible property on all the grid columns to false with the exception of the Name column. That lets me see what each item is.