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?
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; }
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.
That worked perfectly, many thanks