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 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

Related Questions

I have a class defined like this: class TouchScreenDisabledGrid:DataGrid,INotifyPropertyChanged I want to change soome
I am using WPF toolkit Datagrid. I have a rowvalidationrule defined on this. to
I have a File class defined as following public class File { public string
I have a very simple object called CellData. Is defined as: public sealed class
I have defined the datagrid as follows <mx:DataGrid id=dg width=100% height=100% > In the
I have a DataGrid in Flex, with one column a checkbox and another a
I have the next code where I defined a WPF toolkit datagrid control called
I have a List<T> collection which is bound to a DataGrid. T is some
I have a datagrid defined in XAML as follows: <toolkit:DataGrid Margin=10,116,62,34 Name=WADataGrid RowBackground=LightYellow AlternatingRowBackground=White
I have a ContextMenu defined on a Datagrid but want to bind submenu items

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.