Finally I received the Macromedia MX Developer Resource Kit today!
I’m right now playing with the DataGrid component.

The following example is just to show how simple it is to use the data grid component. I’ve created it by

  • dragging and dropping a data grid component and naming it as my_dg.
  • adding a dynamic text box and naming it as my_txt
  • adding the following actionscript in frame 1.

[cc lang=”actionscript3″]my_dg.setColumns(“Name“, “Purity“); my_data = [ { Name:”Arul“, Purity:90, Description:”very much human” }, { Name:”GOD“, Purity:100, Description:”the perfect, omnipotent, omniscient originator and ruler of the universe” } ]; my_dg.setDataProvider(my_data); my_dg.setChangeHandler(“dgChange“); function dgChange() { var sel = my_dg.getSelectedItem(); my_txt.text = sel.Name+” is “+sel.Description+”. He is “+sel.Purity+”% pure“; } [/cc]

Which resulted in the following