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?
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.
This works just as I need it to, and the Reflection will prove very useful in the future. Thanks!