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
155
Hiding columns with autoGenerateColumns set to true
posted

I want to attach the datasource of webHierarchicalDataGrid to an instance of an object and have the columns generated automatically, and want to hide one of the columns there after. Is that possible without having to manually bind each column using BoundDataField?

Thanks, Shilpi

Parents
  • 25665
    Offline posted

    Hello Shilpi,

    Thank you for contacting Infragistics.

    It is recommended to create the columns yourself as if you auto generate column they won’t be added to the columns collection. Which gives you easy access to the columns to make modifications to them. If you want to auto generate the columns you can achieve this by going through the row for example:

    Whdg1.GridView.Rows[0].Items[0].Column.Hidden = true;

    Please let me know if you have any further questions concerning this matter.

Reply Children
No Data