Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6225425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:50:27+00:00 2026-05-24T08:50:27+00:00

I have used datagrid on many projects populate the grid using the following Usual

  • 0

I have used datagrid on many projects populate the grid using the following “Usual data structure” and brought the standard o/p as shown below Image.
But now for one assignment I want to bring the same grid result using the below mentioned “Complex data structure” (nested array). I have some Idea which is process the data before pushing it to the Grid but the problem am having is I need to perform some update , edit delete operation through the grid renderers and the same should be reflected into the source collection also. Please let me know is there a way I can use the “Complex structure” and bring the expected o/p using any flex in build properties. Thanks in Advance.

Usual data structure

steps = [a,b,c];
a = {x:100,y:y1,z:z1};
b = {x:200,y:y2,z:z2};
c = {x:300,y:y3,z:z3};

Complex data structure

[] is an Array collection not Array type.    
a = [100,y1,z1];
b = [200,y2,z2];
c = [300,y3,z3];
steps = [[a,some objects],[b,some objects],[c,some objects]];

enter image description here

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
    <![CDATA[

        import mx.collections.ArrayCollection;

        private var a:ArrayCollection = new ArrayCollection(['x1','y1','z1']);
        private var b:ArrayCollection = new ArrayCollection(['x2','y2','z2']);
        private var c:ArrayCollection = new ArrayCollection(['x3','y3','z3']);
        [Bindable]
        private var stepsObjs:ArrayCollection = new ArrayCollection([{ items: a},{ items: b},{ items: c}]);

    ]]>
</mx:Script>

<mx:DataGrid dataProvider="{stepsObjs}" >
    <mx:columns>
        <mx:DataGridColumn dataField="items.0" headerText="x" />
        <mx:DataGridColumn dataField="items.1" headerText="y" />
        <mx:DataGridColumn dataField="items.2" headerText="z" />
    </mx:columns>
</mx:DataGrid>  
</mx:Application>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:50:28+00:00Added an answer on May 24, 2026 at 8:50 am

    EDIT Replacing with code to solve the new question.


    This one worked for me:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   >
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
    
                private var a:ArrayCollection = new ArrayCollection([100,'y1','z1']);
                private var b:ArrayCollection = new ArrayCollection([200,'y2','z2']);
                private var c:ArrayCollection = new ArrayCollection([300,'y3','z3']);
    
                private var stepsObjs:ArrayCollection = new ArrayCollection([{ items: a},{ items: b},{ items: c}]);
                private var stepsColl:ArrayCollection = new ArrayCollection([[a],[b],[c]]);
    
            ]]>
        </fx:Script>
        <s:layout>
            <s:VerticalLayout />
        </s:layout>
        <mx:DataGrid dataProvider="{stepsObjs}" >
            <mx:columns>
                <mx:DataGridColumn dataField="items.0" headerText="x" />
                <mx:DataGridColumn dataField="items.1" headerText="y" />
                <mx:DataGridColumn dataField="items.2" headerText="z" />
            </mx:columns>
        </mx:DataGrid>
    
        <mx:DataGrid dataProvider="{stepsColl}" >
            <mx:columns>
                <mx:DataGridColumn dataField="0.0" headerText="x" />
                <mx:DataGridColumn dataField="0.1" headerText="y" />
                <mx:DataGridColumn dataField="0.2" headerText="z" />
            </mx:columns>
        </mx:DataGrid>
    
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new ASP.NET and I have never used a GridView or DataGrid, but
I used to have a class in 1.1 for the Datagrid that inherited from
I have a repeater showing the rows of data.I have used javascript for user
I am using a GroupingCollection to bind my advanceddatagrid. I have used groupingcollection to
I have a p:dataGrid that used to update itself in 3.0.1. Now I upgraded
I have a datagrid which I am using LINQ to fill, I then add
I have a DataGrid that is used in two different views. In each case,
I have a DataGrid, and in that grid, some of the columns are marked
I have a datagrid, populated as shown below. When the user clicks on a
I have used data binding in my project in earlier version of WPF. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.