The DataGrid offers the ability to build out your data in a grid format in an HTML table, which is the most common method due to the nature of PHP. However, the DataGrid offers many other ways of outputting the tabular data structure such as an Excel Spreadsheet or an XML document.
To use a different renderer other than the HTML Table, you can simply change the renderer by either defining the renderer in the Constructor method or by using the setrenderer method. The parameter for defining the renderer is specified by one of the renderer constants.
The following listed are the renderers that are available in the DataGrid package.
This renderer uses the PEAR::HTML_Table package to create an HTML table of the data.
This renderer uses the PEAR::Spreadsheet_Excel_Writer package to create an Excel Spreadsheet.
XUL is a language developed by the Mozilla Foundation for creating rich user-interfaces. One component of XUL is a DataGrid like structure. With this renderer you can easily add an XUL listbox to you XUL application.