When I use 'htmlOptions'=>array('class'=>'table-bordered table-condensed'), the custom classes were added to the wrapper div and not to the table element
<div id="contact-grid" class="table-bordered table-condensed">
<div class="summary">Displaying 1-6 of 6 results.</div>
<table class="items table">
<thead>
<tr>
Thanks!
Update: As end result I need the following:
<div id="contact-grid">
<div class="summary">Displaying 1-6 of 6 results.</div>
<table class="items table table-bordered table-condensed">
<thead>
<tr>
Answer:
<?php $this->widget('bootstrap.widgets.TbGridView',array(
'id'=>'contact-grid',
...
'itemsCssClass'=>'table-bordered table-condensed',