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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:45:28+00:00 2026-06-03T09:45:28+00:00

in my flex application i have a datagrid as 2 columns editable and remaining

  • 0

in my flex application i have a datagrid as 2 columns editable and remaining columns are non editable. in some condition, in runtime i have to change the editable column to non editable…how can i do this?? any suggestions??
Heres my code…

<mx:AdvancedDataGrid id="adg1" editable = "true" designViewDataType="tree">
                        <mx:columns>
                                    <mx:AdvancedDataGridColumn headerText="Name" dataField="name" editable ="true"/>
                                    <mx:AdvancedDataGridColumn headerText="Age" dataField="age" editable ="true"/>
                                    <mx:AdvancedDataGridColumn headerText="Roll No" dataField="num" editable = "false"/>
                        </mx:columns>
            </mx:AdvancedDataGrid>

Thanxx 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-06-03T09:45:29+00:00Added an answer on June 3, 2026 at 9:45 am

    Method 1:
    You can loop through columns, and check editable property:

                for (var i:int = 0; i < adg1.columns.length; i++) 
                {
                    if (adg1.columns[i] is AdvancedDataGridColumn)
                    {
                        var myCol:AdvancedDataGridColumn = adg1.columns[i] as AdvancedDataGridColumn;
    
                        trace(myCol.editable);  
    
                        //for example, change Age column to non editable
                        if (myCol.headerText == 'Age')
                        {
                            myCol.editable = false;
                        }
                    }
                }
    

    Method 2:

    if you set id for column like:

    <mx:AdvancedDataGridColumn id="ageCol" headerText="Age" dataField="age" editable ="true"/>
    

    you can access it this way:

    trace("before ageCol editable:",ageCol.editable);
    
    var indx:int = adg1.columns.indexOf(ageCol);
    adg1.columns[indx].editable = false;
    
    trace("after ageCol editable:",ageCol.editable);
    

    or if it is applicable, just do:

    ageCol.editable = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a portlet. Inside of this portlet I have Flex application that displays
I have a view like this in my Flex mobile Application: <s:View xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark
I have a flex application which use DragManager. When I'm loading this application into
I created an application to show a datagrid with a custom column in Flex
I have a flex application that when i update on the server i can
I have a Flex application which is served via a JSP page. In this
In my flex 3 application I have 5 fields with textboxes. I'm using datagrid
I have a Flex application which has to be deployed in some server. The
I would like to show some hidden text in a Flex application and have
I have an application in Flex and in the HTML file I have some

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.