hi kumar,
This is very easy.
you actually need not use any logic for this
This is the default property of data grid
do the following
1.just drag drop the data grid
2.do not define any column header or column
data grid itself will give u the column according to data in the data provider.
Kumar <[EMAIL PROTECTED]> wrote:
Hi All,
My Query here is that I have an XML which has following structure
<root>
<row>
<name>Kumar</name>
<class>MCA</class>
</row>
<row>
<name>Gaurav</name>
<class>MCA</class>
</row>
</root>
Here child elements of <row> are fixed i.e. <name> and <class>
Next time there can be an XML containg one more child node like <company>
And I want to create a dynamic datagrid which can read XML and create columns
on the basis of this.
If XML has two child nodes like <name> and <class> then Datagrid should have
two columns if XML has 3 childnodes like <name>,<class>,<Company> then Datagrid
should contain 3 column like name,class and company.
Can this be done
.
I am not getting any approch but I am sure we will have to read the child
nodes and create a Datagrid in Action script.
If some one has done something like this please suggest me
Thanks in advance guys
Looking forward for your valuable responses.
Thanks,
Kumar
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers