Hi Nan,
I think you missed my point.
I have this in gridview:
<head><style type="text/css"> .dhide { display:none; }</style></head><asp:BoundField DataField="department"><ItemStyle CssClass="dhide"/>
How do I grab the value of cssClass="dhide" from codebehind and use it as filter in my WHERE clause
Private Sub BindGrid() ... ... Using cmd As New SqlCommand("SELECT e.empID, e.empname, e.department, a.managerID, a.status FROM Emp e INNER JOIN Angulers a ON a.empID = e.empID WHERE a.status = 'Done' and e.department = ??? ") ... ...