The user can hide or display some rows in an UltraGrid with a button. We implement that with row.Hidden. So, we don't change the UltraGrid.DataSource.
However, we also need to hide or display some columns, via column.Hidden. That logic is implemented in the event handler of the InitializeLayout.
How can we trigger that event without changing the DataSource?
Hello,
I ma glad to here that you have been able to resolve your issue.
I just want to inform you that you also could use UltraGridCollumnChooser, to allow customer to hide/unhide columns:
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/WinGrid_Using_the_Column_Chooser_Feature.html
Thank you for using Infragistics components.
Thank you for the tip Hristo. In this case, we didn't want the customer to be confronted with the column chooser, because of the many combinations possible for each scenario. We wanted these to be handled programmatically, so that all the customer has to do is to click a few buttons.
Thank you for your reply.