Might consider using groupedColumns instead of columns. Seems strange that ADGs would have both. Must be a legacy thing.
Ciao, Paul Hardiman > On Oct 23, 2014, at 11:23 AM, Tintin <[email protected]> wrote: > > Hello > > I have an ArrayCollection of 'Lessons' which has the following fields: > topicName, lessonName. The lessonName is unique for every row but the > topicName is not. I want to display the Lessons grouped by Topic as follows: > > Topic 01 > Lesson 01 > Lesson 02 > Topic 02 > Lesson 03 > Lesson 04 > > So far I have created a GroupingCollection2, used this as the data provider > for an AdvancedDataGrid and in its raw form this works. > > Now I want to style the columns. I have been able to create a > MXAdvancedDataGridItemRenderer and set this as a > AdvancedDataGridRendererProvider for my Lessons column. By setting the Depth > to 2 the Lessons are all styled as I want. > > How do I create an ItemRenderer for the group headings in the Topic column? > No matter what I try either it has no impact on the display or it renders on > every row, not just the group headings. > > For example I tried this within the <mx:columns> but it renders every > column: > > > I have tried creating, and referencing, an AdvancedDataGridGroupItemRenderer > but this didn't influence the displayed data: > > > > Any advice would be very welcome. > > Thanks. > > Chris > > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/AdvancedDataGrid-ItemRenderer-for-Group-Column-tp8494.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. >
