2
Answers

How to hide column of Gridview when there is no data

samanta

samanta

8y
282
1
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)