Html 要传递样式类的web网格列
我已将我的网格列定义如下:Html 要传递样式类的web网格列,html,css,asp.net-mvc,webgrid,mvcgrid,Html,Css,Asp.net Mvc,Webgrid,Mvcgrid,我已将我的网格列定义如下: WebGridColumn colRequestorEmail= new WebGridColumn(); colRequestorEmail.ColumnName = "RequestorEmail"; colRequestorEmail.Header = "Requestor Email Id"; colRequestorEmail.CanSort = true; colRequestorEmail.Style = "name"; 我的CSS如下所示 .name
WebGridColumn colRequestorEmail= new WebGridColumn();
colRequestorEmail.ColumnName = "RequestorEmail";
colRequestorEmail.Header = "Requestor Email Id";
colRequestorEmail.CanSort = true;
colRequestorEmail.Style = "name";
我的CSS如下所示
.name { width: 0px;visibility: hidden; }
我仍然可以看到我要传递为隐藏的列?在此处添加css名称,并使用css文件设置实际属性
// Summary:
// Gets or sets the CSS class attribute that is rendered as part of the HTML table
// cells that are associated with the System.Web.Helpers.WebGrid column.
//
// Returns:
// The CSS class attribute that is applied to cells that are associated with the
// column.
是否要隐藏web网格中的特定列?