Praveen S Praveen S - 1 year ago 234
HTML Question

How to hide a column in the Webgrid in MVC?

I am new to MVC and I use

to display some customer values.
I need to hide columns together with their headers. How do i do this?

gridhide { visibility:hidden }

grid.Column("Id", "ID", style: "gridhide"),

Answer Source

I hide particular column: Please Try This: WEBGRID

grid.Column(null,null, format: @<input type="hidden" name="IDHidden" value="@item.IDHidden"/>),
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download