estou seguindo o link http://livedocs.adobe.com/flex/3/langref/mx/collections/GroupingCollection.html porém não mostra nada no ADG. quando tiro o GroupingCollection , aparece normalmente. a idéia é agrupar MES/ANO na forma do TREE usando o GroupingCollection .
listaDeSaldoMes mx.collections.ArrayCollection (@6229f01) [inherited] 0 Object (@5a78e49) creditos 2004.52 debitos 1778.73 descricao "C/C1" mesAno "10/2009" saldoAnterior 1490.46 saldoAtual 1716.25 1 Object (@5a783a9) creditos 5005.18 debitos 6431.82 descricao "C/C2" mesAno "10/2009" saldoAnterior 3525.47 saldoAtual 2098.83 2 Object (@5b92ee9) creditos 2833.96 debitos 4120.54 descricao "C/C1" mesAno "11/2009" saldoAnterior 1716.25 saldoAtual 429.67 3 Object (@5bdd4c1) 4 Object (@5bcbb29) 5 Object (@5bb11c9) 6 Object (@5a64471) 7 Object (@5a648f9) 8 Object (@5a64e21) source Array (@62154a1) <mx:AdvancedDataGrid x="10" y="72" width="506" height="256" initialize="gc_mes.refresh()" id="myADG" > <mx:dataProvider> <mx:GroupingCollection id="gc_mes" source="{listaDeSaldoMes}" > <mx:grouping> <mx:Grouping> * <!-- já tentei somente com um GroupingField , mas tb não aparece -->* <mx:GroupingField name="mesAno"/> <mx:GroupingField name="descricao"/> </mx:Grouping> </mx:grouping> </mx:GroupingCollection> </mx:dataProvider> <mx:columns> * <!-- já tirei o dataFiel "mesAno" , mas tb não aparece -->* <mx:AdvancedDataGridColumn headerText="Mês/Ano" dataField="mesAno" textAlign="center"/> <mx:AdvancedDataGridColumn headerText="C/C" dataField="descricao" textAlign="left"/> <mx:AdvancedDataGridColumn headerText="Saldo Anterior" dataField="saldoAnterior" textAlign="right" labelFunction="formatValor"/> <mx:AdvancedDataGridColumn headerText="Débitos" dataField="debitos" textAlign="right" labelFunction="formatValor"/> <mx:AdvancedDataGridColumn headerText="Créditos" dataField="creditos" textAlign="right" labelFunction="formatValor"/> <mx:AdvancedDataGridColumn headerText="Saldo Atual" dataField="saldoAtual" textAlign="right" labelFunction="formatValor"/> </mx:columns> </mx:AdvancedDataGrid> bruno bg -- Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com Para sair da lista, envie um email em branco para flexdev-unsubscr...@googlegroups.com Mais opções estão disponíveis em http://groups.google.com/group/flexdev To unsubscribe from this group, send email to flexdev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.