jquery datatable server side pagination mvc with Dynamic Columns
<p>I have used the below link code for server side paging in the datatable.</p>

<p><a href="http://www.dotnetawesome.com/2015/11/jquery-datatable-server-side-pagination-sorting.html" rel="nofollow">http://www.dotnetawesome.com/2015/11/jquery-datatable-server-side-pagination-sorting.html</a></p>

<p>but in my scenario. columns are dynamic and fetch from database. </p>

<pre><code>$("#myTable").DataTable({
                "processing": true, // for show progress bar
                "serverSide": true, // for process server side
                "filter": false, // this is for disable filter (search box)
                "orderMulti": false, // for disable multiple column at once
                "ajax": {
                    "url": "/home/LoadData",
                    "type": "POST",
                    "datatype": "json"
                },
                "columns": [
                        { "data": "ContactName", "name": "ContactName", "autoWidth": true },
                        { "data": "CompanyName", "name": "CompanyName", "autoWidth": true },
                        { "data": "Phone", "name": "Phone", "autoWidth": true },
                        { "data": "Country", "name": "Country", "autoWidth": true },
                        { "data": "City", "name": "City", "autoWidth": true },
                        { "data": "PostalCode", "name": "PostalCode", "autoWidth": true }
                ]
            });
</code></pre>

<p>Please help me how provide dynamic columns in this code.</p>