How to hide a column in the Webgrid in MVC?

Tags: html,css,

Problem :

I am new to MVC and I use Webgrid to display some customer values. I need to hide columns together with their headers. How do i do this?

CSS: gridhide { visibility:hidden }
Code: grid.Column("Id", "ID", style: "gridhide"),

Solution :

I hide particular column: Please Try This: WEBGRID

grid.Column(null,null, format: @<input type="hidden" name="IDHidden" value="@item.IDHidden"/>),

    CSS Howto..

    How to vertically align

    tag in navbar

    CSS: How to set minimum and maximum height according to inside?

    How to Make Radio Button Into CSS Button?

    How to use css to display an avatar pic with details next to it?

    Show hidden image with jQuery

    How do I set the offset of a div from the top of an outer div to be the same as the offset from the side of the outer div using only css?

    How to implement Star Rating in Intel XDK by App Framework 3.0

    How to wrap a div containing text around a div containing an image?

    How to avoid the div 'move' when mouse hover?

    How to position an element relative to the background image width

    How to load self hosted font files if the GoogleFont service is unavailable?

    How to keep a sticky menu contained inside a floating sidebar?

    how to set transform for div without effect on background image?

    CSS horizontal scroller, how to position “below” before “right”?

    How to set image as a button in HTML & CSS?

    How to Change a Plugin's CSS

    How to specify image size in webview css using dip?

    How to align image and download button in css?

    How can I bold specific HTML rows and columns with CSS or HTML?

    How to make video thumbnails like Facebook [CSS]

    Telerik RadEditor for MOSS - How do I suppress min-width inline CSS?

    How to pass an array from controller to PHP file that contains CSS before the view is loaded?

    How to place text over different images with different positions?

    CSS How to place a submit button on a new line?

    How to modify CSS or JS file from “materialize:materialize” package in Meteor

    How can I center a tooltip below an element that is narrower than the tooltip?

    how to align text input in Angular-Material tool bar?

    How to overlap auto-scaling images with an auto-scaling background

    How to display two columns of blocks with CSS

    CSS selector: How to select element sibling AND element itself?