<div id="gridContent"> @grid.GetHtml(tableStyle: "webGrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select", columns: grid.Columns( grid.Column("Name", "Name", style: "description"), grid.Column("DomainName", "Domain Name",style:"hide") </div>
<style type="text/css"> .hide {display:none;} <style> Like this I am trying to hide the column but column header not able to hide how can I hide the column header in this
$('.grid table thead tr th:eq(8)').hide();
grid.Column("FriendlyId", style:"hidecol",header:"") Insted of using like this you have to use Like bellow manner I tried It will work successfully. grid.Column(format: @<input type="hidden" name="FriendlyId" value="@item.FriendlyId" />)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)