header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Ramakrishna
Points:0
Posts:0

8/20/2010 1:32:46 AM

Title: how to do this?


Hi all,

i have a design like this

No AccountName Dr Cr

1 State Bank of India
1)Travelling 100 0
2)news paper 100 0

2 Andhra Bank 0 100
1) xxx 1000 0
2) yyyy 2000 0
3)zzzz 3000 0
3

4
...
etc

I want to implement in datagrid
How to design and do it?


please help me



1
Prestine
Points: 190
Posts:0
8/20/2010 2:00:00 AM



Hello,

Can you explain in a better way, that you are looking for?


Thanks and Regards,

2
Andrid
Points: 720
Posts:0
8/20/2010 6:40:36 AM



create a array collection of data you have and set that array collection as dataProvider to your datagrid . You may create array collection like this :




public var mydata:Array;

[Bindable]
public var arrayCol:ArrayCollection;

private function initData():void
{
mydata = [];
mydata.push( { N0: '1', Account Name: 'Travelling',Debit: '100', Creadit:'0' } );
mydata.push( { No: '2', Account Name: 'Andhra Bank',Debit: '0', Creadit:'100' } );

arrayCol = new ArrayCollection(mydata); 
//now set arrayCol as dataprovider to your datagrid

3
Rayan
Points: 700
Posts:0
8/21/2010 11:52:50 AM



use advancedDataGrid control of flex to display such hierarchical data.

see this example to use the advancedDataGrid Control

http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions