DataGridView隐藏列用CSS实现

时间:2014-06-27 20:43:10   收藏:0   阅读:311

 隐藏DataGridView某一列,用CSS控制 

CSS Code:

  .hidden{ display:none;}

c# Code:

<asp:BoundField DataField="id" HeaderText="id">

  <ControlStyle CssClass="hidden" />

  <ItemStyle CssClass="hidden" />

  <HeaderStyle CssClass="hidden" />

  <FooterStyle CssClass="hidden" />

</asp:BoundField>

DataGridView隐藏列用CSS实现,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!