HI,
Im using Arraylist as datasource for my ultragrid.
In my ArrayList for example, saying that first 10 Rows belongs to GroupA and next 10 rows belogs to groupB and next belongs to GroupC.
All the Rows in the Arraylist already has a child row merged in it.
while assigning this Arraylist to my Grid, I can able to see the parent and child relationship for all the rows, am very happy about it.
But I need to put them in Group order(ABC) as well, how to do that ??
for example, in my grid, i need to see only 3 Groups, by clicking the plus sign I need to see the parent row and the corresponding child row for that group alone.
please help me, looking for your reply...!!
With Thanks & Regards
Amjath
Hi Amjath,
It sounds like you are looking for the OutlookGroupBy feature in the grid. This allows you to group the grid by the values of a column and create a sort've artificial hierarchy for flat data.
If you want to group by some field that is outside of the grid data, then what you should do is add an unbound column to the grid and use the InitializeRow event to populate that unbound column with the external value you need. Then you can group by the unbound column.
Thanks a lot mike, after lots of struggle, today morning only I found the unbound column what you mentioned in the reply now...I fixed the issue thanks a lot :)..