protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        Customer obj = (Customer)Session["USER"];
        Label label = e.Row.FindControl("customerId") as Label;
        string str = label.Text;
        if (obj != null)
        {
            if (str.Trim() != obj.CustomerId.ToString().Trim())
            {
                ((LinkButton)e.Row.FindControl("LinkButton1")).Visible = false;
            }
        }
        
    
 Label label = e.Row.FindControl("customerId") as Label能不能获取到customerId的值?