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
1015
Hiding Row Numbers on Gantt View
posted

I'm using a very customized version of the Ultra Gantt View, and was curious if there's a way to hide the row numbers from the Grid portion of the control. Is this possible? If it is, can you provide a code sample on how to access that property and hide the row numbers?

Parents
No Data
Reply
  • 48586
    Verified Answer
    posted

    Hello ,

     

    What you could do in your case is to use reflector in order to access the grid part of the UltraGantView and to setting RowSelectorNumberStyle to None. You should choose appropriate event where to get the grid (you should be sure that the grid of the UltraGantView was initialized). 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.Override.RowSelectorNumberStyle = RowSelectorNumberStyle.None;

     

    Please let me know if you have any further questions.

Children