you can have renderer for show two variables in the same row , check the example .
*Main* <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="{init()}" layout="absolute" xmlns:local="*"> <mx:Script> <![CDATA[ import mx.utils.ObjectUtil; private function checknow():void { trace(ObjectUtil.toString(ADG.dataProvider)); } ]]> </mx:Script> <mx:XML id="list"> <rows> <row> <name>Date1</name> <art>group1</art> <infor> <actual>1/4/2005</actual> <planed>2/5/2008</planed> </infor> </row> <row> <name>Date2</name> <art>group2</art> <infor> <actual>4/5/2008</actual> <planed>4/2/2008</planed> </infor> </row> </rows> </mx:XML> <mx:VBox width="100%" height="100%"> <mx:AdvancedDataGrid id="ADG" width="50%" height="50%" dataProvider="{list.row}" dragEnabled="true" > <mx:columns> <mx:AdvancedDataGridColumn dataField="name" /> <mx:AdvancedDataGridColumn dataField="art" /> </mx:columns> <mx:rendererProviders> <mx:AdvancedDataGridRendererProvider dataField="infor" columnIndex="1" columnSpan="0" rowSpan="0" renderer="cc"/> </mx:rendererProviders> </mx:AdvancedDataGrid> <mx:Button label="save" click="checknow()" x="0" y="252"/> </mx:VBox> </mx:Application> * Renderer* <mx:VBox height="200" width="100%" xmlns:mx="http://www.adobe.com/2006/mxml "> <!-- for making the text appear in the middle< verticalAlign="middle"> --> <mx:Text text="{data.infor.actual}" /> <mx:Text text="{data.infor.planed}" /> </mx:VBox> now it will show the two variables in the second row you can try position the elements by changing the vertical /horizontal aligns . Cheers Dinukx On Fri, Nov 13, 2009 at 2:36 PM, flexorz group of flex corders < [email protected]> wrote: > how does your data provider(data structure) looks like ? > > > > On Thu, Nov 12, 2009 at 8:05 PM, Balki <[email protected]> wrote: > >> Thanks for the response Dinukx. But, yours is not what exactly am >> looking for. HeirarchialDataGrid doesn't exactly solve my problem. >> Sorry if my earlier post was not intended properly. Please find >> attached my exact reqmt. Am trying to simulate this in a datagrid. In >> html terms, we are trying to apply a rowspan for a row which has two >> values. >> >> Column1 Column2 >> ------------------------------------------------ >> | Planned <Value> >> First Date | --------------------------------- >> | Actual <Value> >> ------------------------------------------------- >> >> Please let me know if you need more inputs >> >> On Nov 12, 3:15 pm, flexorz group of flex corders >> <[email protected]> wrote: >> > Hey Balki , >> > you mean like this ? >> > >> > <mx:XML id="list"> >> > <rows> >> > <row> >> > <name>Date1</name> >> > <actual>1/8/2009</actual> >> > <infor> >> > <row> >> > <name>planned1</name> >> > <actual>1/4/2005</actual> >> > </row> >> > <row> >> > <name>planned2</name> >> > <actual>2/5/2008</actual> >> > </row> >> > </infor> >> > </row> >> > <row> >> > <name>Date2</name> >> > <actual>3/6/2009</actual> >> > <infor> >> > <row> >> > <name>planned1</name> >> > <actual>4/5/2008</actual> >> > </row> >> > <row> >> > <name>planned1</name> >> > <actual>5/8/2002</actual> >> > </row> >> > <row> >> > <name>planned3</name> >> > <actual>4/2/2008</actual> >> > </row> >> > </infor> >> > </row> >> > </rows> >> > </mx:XML> >> > >> > <mx:AdvancedDataGrid width="50%" height="50%"> >> > <mx:dataProvider> >> > <mx:HierarchicalData source="{list.row}" childrenField="infor" > >> > </mx:HierarchicalData> >> > </mx:dataProvider> >> > <mx:columns> >> > <mx:AdvancedDataGridColumn dataField="name" /> >> > <mx:AdvancedDataGridColumn dataField="actual" /> >> > </mx:columns> >> > </mx:AdvancedDataGrid> >> > >> > hope this helps >> > let me know what you think. >> > >> > cheers >> > >> > Dinukx >> > >> > >> > >> > On Wed, Nov 11, 2009 at 2:06 PM, Balki <[email protected]> wrote: >> > >> > > Hi All >> > >> > > I have a requirement to display the data in a grouped manner. I have >> > > some data field like date which have planned and actual dates. Is >> > > there a way to show the "First Date" alone in a merged cell, as we >> > > view in excel ? This is an urgent requirement and would be of immense >> > > help if I get the reply ASAP. >> > >> > > Column1 Column2 >> > > First Date Planned <Value> >> > > Actual <Value> >> > >> > > Thanks in advance >> > > Balki >> > >> > > --~--~---------~--~----~------------~-------~--~----~ >> > > You received this message because you are subscribed to the Google >> Groups >> > > "Flex India Community" group. >> > > To post to this group, send email to [email protected] >> > > To unsubscribe from this group, send email to >> > > [email protected]<flex_india%[email protected]> >> <flex_india%2bunsubscr...@googlegrouÂps.com> >> > > For more options, visit this group at >> > >http://groups.google.com/group/flex_india?hl=en >> > > -~----------~----~----~----~------~----~------~--~---- Hide quoted >> text - >> > >> > - Show quoted text - >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Flex India Community" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=. >> >> >> > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=.

