Controlling CFGrid Data with JavaScript (24-Sep-09)
The cfgrid tag creates a cfform grid control that resembles a
spreadsheet table and can contain data populated from a cfquery or
from other sources of data. As with other cfform tags, cfgrid offers a
wide range of data formatting options as well as the option of
validating user selections with a JavaScript validation script.
You can also do the following tasks with cfgrid:
Sort data in the grid alphanumerically
Update, insert, and delete data
Display images in the grid
Users can sort the grid entries in ascending order by double-clicking
any column header. Double-clicking again sorts the grid in descending
order. You can also add sort buttons to the grid control.
When users select grid data and submit the form, ColdFusion passes the
selection information as form variables to the application page
specified in the cfform action attribute.