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
8/20/2010 2:00:00 AM
Hello,
Can you explain in a better way, that you are looking for?
Thanks and Regards,
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
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