Praveen S Praveen S - 6 months ago 105
HTML Question

How to hide a column in the Webgrid in aspasp.net MVC?

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"),

Answer

I hide particular column: Please Try This: WEBGRID

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