Sunday, 25 February 2018

Hide GridView Column using CSS in .Net

<style type="text/css">
.hiddencol
  {
    display: none;
  }
</style>

<asp:BoundField DataField="EMail" HeaderText="EMail" HeaderStyle-CssClass="hiddencol" ItemStyle-CssClass="hiddencol" />

1 comment:

  1. That's so great! Short, easy to understand and effective. It works well and helpful for me. Thank you very much.

    ReplyDelete