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

  • SEARCH
  • Home
  • 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 289819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:56:30+00:00 2026-05-12T05:56:30+00:00

I have a 1 row, many column flex datagrid. I would like to turn

  • 0

I have a 1 row, many column flex datagrid. I would like to turn the dataGrid on its side, so that the column headers become a single column running down and v.v.

Is there a way to do that in the DataGrid?

Or am I stuck manipulating the data presented to the grid? If so whats your recommendation?

The main idea here is I have an object like:

x=y
b=u
o=p
u=e
w=p

And I’d like a control that is visually similar to that. Currently the datagrid displays the object as:

x b o u w
y u p e p

Which is too horizontal for my case. Thx

  • 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-12T05:56:30+00:00Added an answer on May 12, 2026 at 5:56 am

    I presume that you want to convert your columns in to a single column
    this can be done by getting all the columns and put the in array as provide it as a dataprovider.

    DataGrid.columns
    

    will return the columns.

    and you can do some think like this to create columns.

    public function createColumns():Array{
                var advancedDataGridColumn:AdvancedDataGridColumn;
                    var i:int;
                    var columnsArray:Array = new Array();
                        for(i=0;i<columns.length;i++){                      
                                    advancedDataGridColumn=new AdvancedDataGridColumn();        
                                    advancedDataGridColumn.headerText=columns[i].dispheader.toString();
                                    advancedDataGridColumn.dataField="@"+columns[i].name.toString();                                
                                    advancedDataGridColumn.itemRenderer=new ClassFactory(Styler);                               
                                    if(columns[i].descending!=undefined ){
                                        if(columns[i].descending.toString()=="true")
                                            sortField = new SortField("@"+columns[i].name.toString(),false,true,null);
                                        else
                                            sortField = new SortField("@"+columns[i].name.toString(),false,false,null);
                                    }
    
                                    if(advancedDataGridColumn.headerText == Constants.price||
                                    advancedDataGridColumn.headerText == Constants.quantity||
                                    advancedDataGridColumn.headerText == Constants.askPrice||
                                    advancedDataGridColumn.headerText == Constants.bidPrice||
                                    advancedDataGridColumn.headerText == Constants.netAmount||
                                    advancedDataGridColumn.headerText == Constants.interestAmount||
                                    advancedDataGridColumn.headerText == Constants.principalAmount||
                                    advancedDataGridColumn.headerText == Constants.accruedInterestAmount){
                                        var currencyFormattor:CurrencyFormatter = new CurrencyFormatter();
                                        currencyFormattor.useThousandsSeparator=true;
                                        currencyFormattor.currencySymbol="";
                                        currencyFormattor.thousandsSeparatorFrom=",";
                                        currencyFormattor.thousandsSeparatorTo=",";
                                        advancedDataGridColumn.formatter=currencyFormattor; 
                                    }                           
    
                                    columnsArray.push(advancedDataGridColumn);
                            }
                return columnsArray;
            }
    

    sorry i just copied the code but i think it will help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My table has many row that have a same column. I'll call the column
I have a radio button that is the first column of many rows in
I have a query which returns some rows. Its column names are like: Age,
I have a row of data that I need to modify in a database,
I have a MySQL table that will only have one row. What should my
I have a 5 million row table that gets hit with a specific query
I have a button that will create a new entry (row in a table)
if I have a series of subplots with one column and many rows, i.e.:
I have a Datatable that contains a column called Tags, Tags can have values
Hi I have a file that consists of too many columns to open in

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.