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
1125
Hide grid row selectors
posted

Hi

Can the grid row selectors be hidden?  For the ultragrid I would set gridLayout.Override.RowSelectors = false but I can't find an equivalent for the Gantt?

Parents
No Data
Reply
  • 23930
    Verified Answer
    Offline posted

    Hi Tom,

    Thank you for contacting Infragistics Developer Support.

    While the UltraGanttView itself doesn’t have any property to remove the row selectors, you could use reflection in order to get the grid inside the Gantt view and then use the RowSelectors property to remove the rows selectors in the Gantt view. To do this you could use code like:

                  

    var grid = (UltraGrid)this.ultraGanttView1.GetType().

                    GetField("grid", System.Reflection.BindingFlags.CreateInstance

                                   | System.Reflection.BindingFlags.Instance

                                   | System.Reflection.BindingFlags.NonPublic).

                                   GetValue(this.ultraGanttView1);

                if (grid != null)

                {

                    grid.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;

                } 

    Please let me know if you have any additional questions.

Children