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
30
How to show UltraWinGrid band columns heading in 1 column.
posted

I have UltraGrid which has bands. Different bands have 2 or more columns. Can I show same heading (in 1 column) of 2 or more columns of a band. Data should be shown in their columns in the band but I want to show single heading (In 1 column) of 2 or more columns of a band.

 

e.g Band = XYZ

Band Columns = ID,Name,CurrentDate,ModifiedDate

I want to show column heading 'Date' for both CurrentDate and Modifieddate column in my band (It will be single column Heading for both columns ). Basically 'Date' heading will be covering both columns but their data will be shown in their own columns.

 

Thanks,

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

        It sounds like you are looking for group headers. By using Groups, you could create a group header that is above the column headers and spans "contains" colums. What you would do is add some Groups to the band using band.Groups.Add. Then you must assign each column in the band to a particular group by setting the Group property on the column. Note that if you use groups, then every column in the band must belong to a group. You can't have some columns in a group and other that are not. 

        Another solution would be to use RowLayouts, but this is more complex. You could create a dummy column and set it's LabelPosition to LabelOnly and position it across the two "real" date columns.  

         

Reply Children
No Data