Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 589
Praveen S Avatar asked Dec 26 '22 19:12

Praveen S


1 Answers

I hide particular column: Please Try This: WEBGRID

grid.Column(null,null, format: @<input type="hidden" name="IDHidden" value="@item.IDHidden"/>),
like image 79
Praveen S Avatar answered Dec 28 '22 09:12

Praveen S