This is a table in my view.
<table>
@{var counter = 1; }
<tr>
@foreach (var item in Model)
{
<td>
<div class="tdWidthFixed">
<h4 class="m0" style="color:deepskyblue">@Html.DisplayFor(modelItem => item.courseName)</h4>
@Html.DisplayFor(modelItem => item.courseSubject)<br>
@Html.DisplayFor(modelItem => item.institute)
</div>
</td>
if (counter % 3 == 0) //Display 3 courses at a row
{
@:</tr><tr>
}
counter++;
}
</tr>
There are three lines in a one sell. But when displaying lengthy result lines breaks to new line. what i need to know is how to put dots(...) at the end of the line, if records are too long than the column width. And also how to make all the columns are in same size.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire