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
1140
Adding Headings for set of Rows
posted

Hi,

If I have 10 rows within my Grid,

Is there any way where I can add Different Headings to different rows, like I need my First Three Rows under a Heading Called HEADER1 and then the next three under HEADER2 etc.

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    There are two ways to do this.

    1) You could change the structure of your data source and create a hierarchy. So the parent rows would have one field which just has a string like "HEADER1", "HEADER2" and then the rows that are currently in the grid will child rows of those rows.

    2) If you don't want to change your data structure, the grid can create an artificial hierarchy for you using the OutlookGroupBy feature. So what you would do is group your grid by a particular column and this will create GroupByRows which would be your headers and then child rows underneath those. This is probably the easier approach for you.

    So if your data already contains a field in each row that you can group by, then that's easy. If not, you could add an unbound column to the grid and populate this column in the InitializeRow event and then group by the unbound column. In this case, the values of the unbound column would be "Header1", Header2", etc.

Children