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
175
How to programatically hide a column in the XamGantt
posted

Can someone show me some working examples of how to programmatically hide a column?  I see the gantt.ExecuteCommand(GanttCommandId.HideColumn, object) method, but the api documentation is weak.  What kind of object am I supposed to pass to the second parameter? I have tried strings (with the key name of the column), instances of ProjectColumnDefinitions ... etc with no luck.

Does anyone know how to do this?  I would think this would be fairly simple to do...

Thanks in advance,

Tim

Parents
  • 35319
    posted

    Hello Timothy,

     

    I have been looking into your post and you need to pass a GanttGridColumn object as second parameter like e.g. :

     

    this.xamGantt.ExecuteCommand(GanttCommandId.HideColumn, new GanttGridColumn("ColumnKey"));

     

    Please let me know, if you need any further assistance on this matter.

Reply Children