Problems with theming a grid
in views-view-grid--viewname.tpl.php, with print_r($variables), you will find the whole values in the 'view' array (is a very huge output, so I recomend only pull 1 item in this test).

here you will discover that 'result' carry the stdClass Object with the fields of views (not it all, seems that the images are not there), to print this you can use:

print_r($variables['view']-&gt;result);


with the id of the values, you can use these values for example, show a node title:

echo $variables['view']-&gt;result[$i]-&gt;node_title;


or you can use the id of the node to get, for example, images from nodes (seems that the images are not in result).

$nIdItem = $variables['view']-&gt;result[$i]-&gt;nid;
$node = node_load($nIdItem);
echo "&lt;img src='/".$node-&gt;field_image[0]['filepath']."'&gt;";


so with this way is possible to control each field, set of fields, and/or add conditions, functions.

I do not know the performance or security implications of using this way, this may be a new question.