Click here to Skip to main content
16,006,495 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, I want the table to the right start, but do not know what to do. I am using the bootstrap classes and take advantage of it.
my code is
<table class="table table-striped table-bordered table-hover">
      <thead >
    <tr  >
        <th class="text-center">
            @Html.DisplayName("نام کالا")
        </th>
        <th class="text-center">
            @Html.DisplayName("قیمت")
        </th>
        <th class="text-center">
            @Html.DisplayName("تاریخ ثبت")
        </th>
        <th class="text-center">
            @Html.DisplayName("توضیحات")
        </th>
        <th class="text-center">
            @Html.DisplayName("تصویر")
        </th>
    </tr>
</thead>
                 <tbody>
@foreach (var item in Model) {
    <tr >
        <td class="text-center">
            @Html.DisplayFor(modelItem => item.ProductName)
        </td >
        <td class="text-center" >
            @Html.DisplayFor(modelItem => item.ProductPrice)
        </td>
        <td class="text-center" >
            @Html.DisplayFor(modelItem => item.ProductDate)
        </td>
        <td class="text-center" >
            @Html.DisplayFor(modelItem => item.ProductDescription)
        </td>
        <td class="text-center"> 
            @Html.DisplayFor(modelitem => item.ProductImage)
        </td>
        <td class="text-center">
            @Html.ActionLink("Edit", "Edit", new { id=item.ProductId }) |
            @Html.ActionLink("Details", "Details", new { id=item.ProductId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ProductId })
        </td>
    </tr>
 
}
  </tbody>
</table>
Posted
Comments
Kornfeld Eliyahu Peter 6-Oct-14 8:16am    
Change your page direction to rtl?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900