protected void ApprovedGridView() { using (PTCLEntities db = new PTCLEntities()) { var UserID = Convert.ToInt32(Session["UserID"]); var MyApprovedComplaintData = db.MyApprovedComplaint(UserID).ToList(); GVApprovedComplaint.DataSource = MyApprovedComplaintData; GVApprovedComplaint.DataBind(); } }