How to Add Filters to WebGrid?
===

Hi All this is for the first time i am working on filters.....
i had googled about filters but dnt get it rightly
 i am using a web grid which looks like this

                           <%                    
                 var grid = new WebGrid(source: Model, defaultSort: "BugID", rowsPerPage: 3);
                   using (Html.BeginForm())
                         { %>                            
                            <div id="grid">
                            <%:grid.GetHtml(
                             tableStyle: "listing-border", headerStyle: "gridhead", footerStyle: "paging", rowStyle: "td-dark", alternatingRowStyle: "td-light",                            
                             columns:grid.Columns(
                            grid.Column("BugID"),
                            grid.Column("Title"),
                            grid.Column("ProjectName"), 
                            grid.Column("CreatedBy"),
                            grid.Column("Category"),
                            grid.Column("CreatedDate"),
                            grid.Column("Prirority"),
                            grid.Column("Severity"),
                            grid.Column(
                            header:"",
                            style:"text-align-centre",
                            format: (item) => Html.Raw("<a href='/ViewBug/Details/" + item.BugID + "' class='Details'>Details</a>")),                           
                            grid.Column(
                            header: "",
                            style: "text-align-center",
                            format: (item) => Html.Raw("<a href='/ViewBug/Edit/" + item.BugID + "' class='Edit'>Edit</a>")     
                              )
                           ))%>
                            </div>
                            <%} %>


this is how my controller looks

              [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult BugDetails()
        {
            var model = Bugs();
            return View(model);
        }
        public List<BugModel> Bugs()
        {
            var modelList = new List<BugModel>();
            using (SqlConnection connection = new SqlConnection("Data Source=LMIT-0039;Initial Catalog=BugTracker;Integrated Security=True"))
            {
                //string UserName = Session["UserName"].ToString();              
                SqlCommand cmd = new SqlCommand("GetBugs", connection);
                cmd.CommandType = CommandType.StoredProcedure;
                SqlDataReader dr;
                connection.Open();
                // cmd.Parameters.Add(new SqlParameter("@BugHistoryID", BugHistoryID));
                dr = cmd.ExecuteReader(); 
                if (dr.Read())
                {
                    var model = new BugModel();
                    model.BugID = Convert.ToInt16(dr["BugID"]);
                    model.Title = dr["Title"].ToString();
                    model.Description = dr["Description"].ToString();
                    model.ProjectName = dr["ProjectName"].ToString();
                    model.Version = dr["Version"].ToString();
                    model.BuildNumber = dr["BuildNumber"].ToString();
                    model.CreatedBy= dr["EmployeeName"].ToString();
                    model.Category = dr["Category"].ToString();
                    model.CreatedDate = dr["CreatedDate"].ToString();
                    model.Severity = dr["Severity"].ToString();
                    model.Prirority = dr["Priorities"].ToString();
                    model.ReleasePhase = dr["ReleasePhase"].ToString();
                    model.Type = dr["Types"].ToString();
                    modelList.Add(model);
                }
                connection.Close();
                return modelList;
            }
        }

i need to add filters for Title ,CreatedBY and Date Can any one tell me how can i do this