samanta

samanta

  • NA
  • 429
  • 135.2k

How to hide column of Gridview when there is no data

Nov 7 2016 5:53 AM
Hi guys!
 
It is possible to  hide column of gridview when there is no data?
 
For example:
 
 <asp:BoundField DataField="EmpName" HeaderText="Emp.Name">asp:BoundField> 
<asp:BoundField DataField="DOB" HeaderText="DOB">asp:BoundField> 
<asp:BoundField DataField="Qualification" HeaderText="Qualification">
and bind gridview DataSource with "EmpName" and "DOB" column.
So in this case i want to hide "Qualification" column.
 
 
Thanks

Answers (2)