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>
评论(0)