Hi,
We've been using RadGrid for a few years now but have never been able to adequately solve a very basic problem: we'd like to merge several adjacent columns in such a way that preserves their sorting. This *must* be done dynamically at run-time (design time is not an option).
Ideally, the resulting table header should have a single merged cell above the individual columns with some descriptive text in it, while the individual columns (and sorting features) sit below it:
-------------------
| Group Name |
-------------------
| | | | |
-------------------
We can kind of get close to this by trapping the DataGrid_ItemCreated event, hiding all but the first column header, and then replacing its contents with a custom HTML table. This does not allow us to sort the columns however.
Is there some mechanism available by which we can group columns?
We've been using RadGrid for a few years now but have never been able to adequately solve a very basic problem: we'd like to merge several adjacent columns in such a way that preserves their sorting. This *must* be done dynamically at run-time (design time is not an option).
Ideally, the resulting table header should have a single merged cell above the individual columns with some descriptive text in it, while the individual columns (and sorting features) sit below it:
-------------------
| Group Name |
-------------------
| | | | |
-------------------
We can kind of get close to this by trapping the DataGrid_ItemCreated event, hiding all but the first column header, and then replacing its contents with a custom HTML table. This does not allow us to sort the columns however.
Is there some mechanism available by which we can group columns?