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
160
merge headers in WinGrid
posted
merge headers in WinGrid

Hi,

I would like to know how to merge headers in WinGrid . We are using 2006 version of WinGrid control

Requirement is like the below

 

col1 head1
col2 col3

col1 head1
col2 col3

  • 469350
    Offline posted

    Hi,

    You can do this using RowLayouts. The best way to do it is to set it up at design-time.

    If you have a newer version of the grid, you would use a HroupLayout and "head1" here could be a group header.

    The old version of the grid you are using doesn't have any support for groups, so in your case, "head1" would have to be a column and you would set the column.RowLayoutColumnInfo.LabelPosition to LabelOnly so no cells are shown.