Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 要传递样式类的web网格列_Html_Css_Asp.net Mvc_Webgrid_Mvcgrid - Fatal编程技术网

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网格中的特定列?