Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
How to Expand Columns in WinGanttView
posted

Hello,

I have four columns in WinGanttView, and want to expand them when my control loads.

Its in Grid Arean of WinGanttView.

Thanks,

Eemran

 

 

Parents
  • 545
    Verified Answer
    posted

    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.

    • Post Points: 20
Reply Children
No Data