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
1615
Hide / Show set of columns in the grid
posted

We have two sets of columns that show different meaning of the same data

1. One shows the value of individual items

2. Second shows the contribution of that item to the total. 

I would like to have a switch of which set to show based on the segment control. If the segment value changes then one set is hidden while the other one is displayed 

What is the best way to implement this?

  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    The best way to do this, is to just swap the ColumnDefinitions on the DataSourceHelper. You would then subsequently call invalidateData on the DSH and then updateData on the IGGridView. 

    -SteveZ