zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Field Order Matters #852

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: Brian.W...@gmail.com (November 25, 2008 09:19:25)

What steps will reproduce the problem?

  1. Create an Add array (of field names) in an order different than in the database
  2. Check edit page

The values match up differently.

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=13

imonteiro commented 11 years ago

From pao.fre...@gmail.com on July 14, 2009 20:39:45 This "Shouldn't" happen, but is it does, you can set the fields order with the order option

$grid->addColumn('name',array('order'=>2));