• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Adding a Data Grid

The DataGrid component allows you to create strong data-enabled displays and applications. You can use the DataGrid component to create a recordset (retrieved from a database query in ColdFusion, Java, or .Net) using Macromedia Flash Remoting and display it in columns. You can also use data from a data set or from an array to fill a DataGrid component. The DataGrid component includes horizontal scrolling, event support (including event support for editable cells), sorting capabilities, and performance optimizations. The data for a grid can come from a recordset that is fed from a database query in Macromedia ColdFusion, Java, or .Net using Flash Remoting, a data set or an array. To pull the information into a DataGrid, you set the DataGrid.dataProvider property to the recordset, data set, or array.

Add a DataGrid Component

Open the Components panel.

Click the UI Components Expand triangle.

Drag the DataGrid component onto the Stage, and then select the component.

Enter a unique instance name for the DataGrid component in the Property Inspector.

Select Frame 1, open the Actions panel, and then enter the script as shown in the illustration.

The Flash Remoting recordset recordSetInstance is assigned to the dataProvider property of myDataGrid.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint