If you want to control which fields appear in the grid you should use the static $summary_fields array on your dataobject. For example
class Product extends DataObject {
public static $db=array(
'Title'=>'Text',
'Category'=>'Text',
'Size'=>'Text'
);
public static $summary_fields=array(
'Title'=>'Title',
'Category'=>'Product Category'
);
}
Posted to: Dataobject in Dataobject? | Show Thread | Post Reply