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
995
Is it possible to merge column but not in the header
posted

Hello,

I have no problem merging column in the header.

However, I would need to merge column directly in the grid based on criteria.
For example if column 1 has a yes then I merge column 3 and 4.
Is it possible?

Thanks

  • 28464
    posted

    I am not sure that I get the complete picture, but I do have a suggestion that can hopefully get you started. If you want to manipulate cells based on certain runtime criteria, you can hook the InitializeRow event and locate any cells from the row currently bound with data using

    e.Row.Cells.FromKey("ColumnName")

    Then you can manipulate the Cell in any way you wish. I guess for merging, you can play with ColSpan and RowSpan properties of the cell.