Hi,
Thanx for the reply but I must be missing something.
Here is the relations I created in the Products.php model:
return array(
		'category'=>array(self::BELONGS_TO, 'Categories','CategoryID'),
		'supplier'=>array(self::BELONGS_TO, 'Sippliers','SupplierID'),
	);
Here is the code to render it in the views/products/admin.php:
$this->widget(‘zii.widgets.grid.CGridView’, array(
'id'=>'products-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
	//'ProductID',
	'ProductName',
	array(
		'name'=>'SupplierID',
		'value'=>'supplier.CompanyName',
	)
	,
	array(
		'name'=>'Category',
		'value'=>'category.CategoryName',
	),
	'QuantityPerUnit',
	'UnitPrice',
	/*
	'UnitsInStock',
	'UnitsOnOrder',
	'ReorderLevel',
	'Discontinued',
	*/
	array(
		'class'=>'CButtonColumn',
	),
),
));
I get the following error:
htmlspecialchars() expects parameter 1 to be string, array given
I thought I knew OOP but this is just on a higher level. Please help.