Posted 2 February 2021, 10:15 am EST - Updated 3 October 2022, 2:34 pm EST
I have a simple OData FlexGrid which fetches data over an OData endpoint on the backend and displays the columns. Here is an example list of columns returned by the backend:
- Country
- Old Amount 1
- New Amount 1
- Old Amount 2
- New Amount 2
Notice the Old/New pairs of columns. I would like to be able to customize the grid to merge cells and display Old/New grouped under same cell like this:
I took a look at an example (https://www.grapecity.com/wijmo/demos/Grid/Merging/HeaderMerging/react) but it works with predefined data so when I call grid.getColumn(index) in initializeGrid method, the columns are not defined yet.
I’m using React. How can I accomplish cell merging with OData driven FlexGrid?
Thanks