CHAPTER 10
1 0
DataGrid component (Flash
Professional only)
The DataGrid component lets you create powerful data-enabled displays and applications.
You can use the DataGrid component to instantiate a recordset (retrieved from a database
query in Macromedia 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. Version 2 of the DataGrid component has been improved to include horizontal
scrolling, better event support (including event support for editable cells), enhanced sorting
capabilities, and performance optimizations.
You can resize and customize characteristics such as the font, color, and borders of columns in
a grid. You can use a custom movie clip as a cell renderer for any column in a grid. (A cell
renderer displays the contents of a cell.) You can use scroll bars to move through data in a grid;
you can also turn off scroll bars and use the DataGrid methods to create a page view style
display. For more information about customization, see
"DataGridColumn class (Flash
Professional only)" on page
300.
When you add the DataGrid component to an application, you can use the Accessibility
panel to make the component accessible to screen readers. First, you must add the following
line of code to enable accessibility for the DataGrid component:
mx.accessibility.DataGridAccImpl.enableAccessibility();
You enable accessibility for a component only once, regardless of how many instances the
component has. For more information, see Chapter 19, "Creating Accessible Content," in
Using Flash.
249
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers