I want all the rows to be in one line.
As you can see below, I have a view where I get a dynamic datatable that was fed by a Json, I do not know the name of the rows or columns so I can not put a fixed width to all columns
<table id="example1" class="table table-bordered table-hover">
<thead>
<tr>
@foreach (System.Data.DataColumn col in Model.Columns)
{
<th class="text-center">@col.Caption</th>
}
</tr>
</thead>
<tbody>
@foreach (System.Data.DataRow row in Model.Rows)
{
<tr>
@foreach (var cell in row.ItemArray)
{
<td class="text-center" style="padding-top:0%; padding-bottom:0%;">@cell.ToString()</td>
}
</tr>
}
</tbody>
</table>
As you can see I have columns with up to 3 lines in a row. There is a form of self self Adjust that width. Knowing that when I insert the columns I still do not know what size that column will be.