I have defined my grid column as below,
WebGridColumn colRequestorEmail= new WebGridColumn();
colRequestorEmail.ColumnName = "RequestorEmail";
colRequestorEmail.Header = "Requestor Email Id";
colRequestorEmail.CanSort = true;
colRequestorEmail.Style = "name";
and my CSS as below,
.name { width: 0px;visibility: hidden; }
I am still able to see the column that I want to pass as hidden?
you add a css name here and set the actual attribute with your css file