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
150
UltraGanttView : Displaying Checkbox in Column Header
posted

I had a custom checkbox column to the grid part of the ultraganttview control and it works fine.

I would like to add a "select all" feature, using a checkbox in the column header of my custom column, like in a normal ultragrid : 

http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/WinGrid_Displaying_Checkbox_in_Column_Header.html 

Is it possible to do the same thing with the ultraganttview control and how?

Thanks,

Parents
No Data
Reply
  • 18495
    posted

    Hello Vincent,

    You can use the normal grid way of enabling the checkbox in the header of the column.  The caveat is that the UltraGanttView does not expose the grid it encapsulates, so you'll need to use some reflection to get it.  You can use code similar to the following to do so.

    var grid = ganttViewType.InvokeMember("grid", BindingFlags.GetField | BindingFlags.Instance | BindingFlags.NonPublic, null, ultraGanttView1, null) as UltraGrid;
    var column = grid.DisplayLayout.Bands[0].Columns["checkBox"];

Children