2
Reply

How to hide column of Gridview when there is no data

samanta

samanta

Nov 7 2016 5:53 AM
261
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)