小编you*_*nup的帖子

DataTables warning - Incorrect column count

I am coding in asp.net mvc and I am trying to implement the table of DataTables.net but I get this error: DataTables warning: table id=abc - Incorrect column count. For more information about this error, please see http://datatables.net/tn/18

This is my table:

<table id="abc" class="display table-bordered table-hover">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.StudentID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FirstName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Program)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.YearGraduate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BoardScore)
        </th>
        <th>Action</th>
    </tr> …
Run Code Online (Sandbox Code Playgroud)

html javascript c# datatable html-table

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

datatable ×1

html ×1

html-table ×1

javascript ×1