Another solutions is to use javascript to know if the td contains any child control or not, if not then hide/remove the td.
Using jQuery you need to write the following.
var selectedTds = $('table').find('td').filter(function() {
return $(this).children().length == 0;
});
selectedTds.hide() / selectedTds.remove();