Hello,
I have four columns in WinGanttView, and want to expand them when my control loads.
Its in Grid Arean of WinGanttView.
Thanks,
Eemran
I got my answer from following post.
Thanks to Hristo for help.
Thanks
Imran
http://ko.infragistics.com/community/forums/t/59490.aspx
Hello MN,
You could access the grid part from UltraGanttView via reflector, once you have the grid you could exclude specific column from column chooser. You could use code like:
UltraGrid ug = (UltraGrid)this.ganntView1.GetType().GetField("grid", System.Reflection.BindingFlags.CreateInstance | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(this.ganntView1);
if (ug != null)
{
ug.DisplayLayout.Bands[0].Columns["Name"].ExcludeFromColumnChooser = ExcludeFromColumnChooser.True;
}
Please let me know if you have any further questions.
Sincerely, Hristo Developer Support Engineer Infragistics, Inc.
Following is code to expand columns in Gantt View Control's Grid Area.
Dim cUltraGrid As UltraGrid = DirectCast(Me.ulGanttView.GetType().GetField("grid", Reflection.BindingFlags.CreateInstance Or Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic).GetValue(Me.ulGanttView), UltraGrid) If Not (cUltraGrid Is Nothing) Then
cUltraGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns
End If
Thanks all for help.