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 6191353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:44:55+00:00 2026-05-24T02:44:55+00:00

Is there a way to get the columns to resize to the width of

  • 0

Is there a way to get the columns to resize to the width of the new Datagrid instead of overflowing and showing the scrollbar? I’ve tried on the skin, setting all relevant properties and ran out of options. I just want it to behave like the previous Datagrid where the columns would resize to the width of the datagrid.

Thanks in Advance

  • 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-24T02:44:55+00:00Added an answer on May 24, 2026 at 2:44 am

    Here is a solution that worked for me.

    I defined a creation complete handler that sets the columns widths for a percentage of the data grid width so that only when it has finished being built the correct width can be set.

    I made the first column 40%, second 30% and the third should occupy the remaining 30%.

    MXML data grid code:

    <s:DataGrid id="MainGrid" width="100%" creationComplete="Grid_creationCompleteHandler(event)">
        <s:columns>
            <s:ArrayList>
                <s:GridColumn id="GridCol1" />
                <s:GridColumn id="GridCol2"/>
                <s:GridColumn id="GridCol3"/>
            </s:ArrayList>
        </s:columns>
    </s:DataGrid>
    

    Action Script code:

    protected function Grid_creationCompleteHandler(event:Event):void
    {
        GridCol1.width = MainGrid.width * 0.4;
        GridCol2.width = MainGrid.width * 0.3;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to get the columns that a SQL query would return
Is there a way to get the actual columns name with ActiveRecord? When I
Is there way to get file from windows xp command prompt? I tried to
Is there any way to get non-contiguous columns from a list of lists in
is there a way to get default values of columns as they are a
Is there a way to get a model's associations programatically? I can pull columns
In dojo enhanced grid, is there any way to get the selected columns? Currently
I have two tables, each has two columns. Is there a way to get
Is there a way to get jqGrid to freeze one or more left-most columns
Is there a way to get all possible values from a MySQL enum column?

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.