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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:01:09+00:00 2026-05-13T20:01:09+00:00

Is it possible to control the properties of ‘advancedgridcolumns’ in ‘advanceddatagrid’ mxml tag. For

  • 0

Is it possible to control the properties of ‘advancedgridcolumns’ in ‘advanceddatagrid’ mxml tag. For e.g. suppose the grid data provider has 3 different fields. Out of these 3 fields, one field is ‘to_be_decided’. This field should not be displayed initially. Only the remaining 2 columns should be displayed (visible true) and the third column (one with data field as ‘to_be_decided’, visible flag will be false here ) should be hidden. It will be visible when some event like a button click or something is fired.

We can do this in action script coding by accessing individual columns of grid and taking appropriate actions. But will it be possible to do so in mxml? Is there some default property in grid that can be used here ?

In mxml I can not access them individually in the grid (under tag) and hence I can not set the visible attributes individually for each of them. To add them one by one in ‘columns’ tags I would be required to know the data field in array collection and that I dont know. Only data field known is ‘to_be_decided’, rest two fields will vary time to time. Therefore even if I addd this one gridcolumn in ‘columns’ tag what about the other two?

Something like this :

 <mx:columns>
      <mx:AdvancedDataGridColumns dataField='to_be_decided' visible=false>
      <!-- How to add other 2 columns here ? -->
 </mx:columns>

Any suggestions/ideas in this regard?

If I failed to make myself clear please let me know I will try to reframe my question.
Thanks in advance.

  • 1 1 Answer
  • 1 View
  • 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-13T20:01:10+00:00Added an answer on May 13, 2026 at 8:01 pm

    You could try

     <mx:columns>
        <mx:Repeater id="rp" dataProvider="{yourArrayCollection}">
          <mx:AdvancedDataGridColumns dataField="{rp.currentItem.fieldName}" visible="{rp.currentItem.show}">
        </mx:Repeater>
     </mx:columns>
    

    where your dataProvider (yourArrayCollection) is an ArrayCollection of objects with properties “fieldName” (String) and “show” (Boolean).

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

Sidebar

Related Questions

Possible Duplicate: DateTime.TryParse century control C# I have a C# app that's importing data
Is it possible to set properties of an control inside a loop without using
Is it possible to databind 2 properties to 1 control? Specifically, I'm thinking phone
Does anyone know if it is possible to have fine-grained control over line properties
Is it possible to control the Tools->Options->View->View Whitespace between pages through VBA/Macros? Thanks.
Is it possible to control autofocus feature of Android camera, using OpenCV's libnative_camera*.so ?
is it possible to control the iAd in my application after it's launched ?
Possible Duplicate: User control javascript I defined a JavaScript function inside a user control.
Possible Duplicate: JavaScript Function Definition in ASP User Control Hi, I have a generic
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the

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.