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
8920
Headerless parent grid
posted

How to make parent grid header less during design time, so rows will be displayed  without header...

Thanks

  • 15320
    Offline posted

    Hello Michael,

    Have you been able to resolve the issue? If you need more assistance, please feel free to contact me.

     

    Sincerely,

    Tsanna

  • 15320
    Verified Answer
    Offline posted

    Hello Michael,

    Thank you for posting in our community.

    To make Header of the parent grid columns invisible, one approach is to set CssClass property to every Header of the parent columns and then apply for instance "display:none" style to it. However this wouldn't be a good practice in case that your data source consists of many records.

    Another approach is in Page_Load event after databinding the grid to iterate through its columns and set CssClass to the column's items header. Attached is a sample for your reference. Please let me know whether this answers your question.

     

    Sincerely,

    Tsanna

    WebHierarchicalDataGridDisableHeader.zip