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
159
Let user hide columns
posted

Hi,

I am displaying a report in webdatagrid with lot of columns using AutoGenerateColumns="True".

I want that user can hide or show whatever columns he is interested in from the UI. How can I do this?

Parents
  • 33839
    Suggested Answer
    posted

    Hi rohitarora,

    As long as you're hiding the columns on the client, you can do this.  The autogenerated columns are available off the columns collection on the grid on the CLIENT.  Not server.  You just have to find a column object and call col.set_hidden(true).  There is no behavior offering a built in UI for this currently.  You will have to accomplish this.  Maybe a menu on the side or with checkboxes where each checkbox is mapped to a column.

    regards,
    David Young 

Reply Children
No Data