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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:09:59+00:00 2026-05-11T11:09:59+00:00

I have a datagrid defined in an mxml file (flex 3): I am using

  • 0

I have a datagrid defined in an mxml file (flex 3):

I am using an external class to connect to a sqlite database and generate some results (this is working and I can trace the results).

How can I target the datagrid generated in the mxml from the external class? I have tried:

Application.application.resultsGrid.dataProvider = results.data;

And get ‘Error: Access of undefined property Application.’ from the amxmlc compiler.

I’ve also tried:

[Bindable] public var resultsGrid:DataGrid; 

In the class properties.

  • 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. 2026-05-11T11:10:00+00:00Added an answer on May 11, 2026 at 11:10 am

    as brd664 says, what you are actually doing in

    Application.application.resultsGrid.dataProvider = result.data;  

    is actually an assignment. It’s just like assigning a value to variable as in

    var a : uint = 1; 

    Binding gives you a little more structure and allows you to populate multiple components based on a single property update. There’s a ton of other benefits from binding and probably too much to cover in this post.

    Here is a quick and simple example of how binding works. Note that there is one property that is bindable… when you click the button it sets that property to the value of whatever is in the textInput. This update then causes the bindings to fire and updates anything that has been bound to that property. It’s one of flex’s biggest features (it’s also used extensively in silverlight and wpf and probably a load of other technologies that i’m not aware of). Anyway… have a play with it and see if you can get your component to update from a binding.

    <?xml version='1.0' encoding='utf-8'?> <mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='horizontal'>      <mx:Script>         <![CDATA[              private var _myData : String              [Bindable]             public function get myData() : String             {                 return _myData;             }             public function set myData(value : String) : void             {                 _myData = value;             }              private function clickHandler(event : MouseEvent) : void             {                 myData = myTextInput.text;             }         ]]>     </mx:Script>     <mx:VBox>         <mx:HBox>             <mx:Label text='{myData}' />             <mx:Label text='{myData}' />             <mx:Label text='{myData}' />         </mx:HBox>         <mx:TextInput id='myTextInput' text='TYPE HERE' />         <mx:Button label='CLICK TO BIND' click='clickHandler(event)' />     </mx:VBox>  </mx:Application> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 90k
  • Answers 90k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you're using SQL to find the set you're interested… May 11, 2026 at 6:02 pm
  • Editorial Team
    Editorial Team added an answer In your situation it can give you at least four… May 11, 2026 at 6:02 pm
  • Editorial Team
    Editorial Team added an answer Looks like SimpleCursorAdapter is too primitive for what I wanted… May 11, 2026 at 6:02 pm

Related Questions

Lets say I have a custom data type that looks something like this: public
I'm developing a web page in Asp.Net 1.1 and have a DataGrid which allows
Now I have seen this question in another forum but it didn't had an
I am using the M-V-VM pattern in a WPF app. I am binding a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.