You can check out the following (both of which can be easily integrated to your PHP scripts):
Ajax-enabled JavaScript grid control with cutting-edge functionality, powerful data binding, and excellent performance with large datasets.
dhtmlxGrid's notable features:
- Built-in filtering, searching, grouping
- Auto-calculated values in footer/header
- Loading from XML/CSV
- Easy client-to-server comunication
- Resizable/movable columns
- Drag-and-drop rows/columns within grid
- Ability to create any editor or cell formating (I believe this is what you're looking for )
- Math Formulas for cells
Also,
plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell
Another jQuery plugin (althought I haven't tried this one) is
an unobtrusive jQuery component that adds datagrid behaviors (column resizing, paging, sorting, row and column styling, and more) to your tables.
If you want to code each editable cell, you may also use Edit in Place using Ajax, which also uses jQuery.
PHP Team also has a list of jQuery Datagrid plugins.