Quoting Travis Nanek travis@travisnanek.com:
I would like to be able to hide the labels in a view if the field is empty. This is to keep the list of information as compact as possible on the page and not show a label with no information following it. I am using a grid layout of different users, and displaying some profile fields, yet those profile fields are not mandatory, thus I'm expecting some to be left blank.
http://api.drupal.org/api/function/hook_form_alter
With the above, create a module that modifies the form attributes.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/