protected void gvAnalysisView_OnPreRender(object sender, EventArgs e) { if (!IsPostBack) { if (!String.IsNullOrEmpty(Request.QueryString["SubjectId"])) { gvAnalysisView.MasterTableView.IsFilterItemExpanded = true; gvAnalysisView.MasterTableView.FilterExpression = "([SubjectId] = " + subjectId + ")"; GridColumn column = gvAnalysisView.MasterTableView.GetColumnSafe("SubjectId"); column.CurrentFilterFunction = GridKnownFunction.EqualTo; column.CurrentFilterValue = subjectId; gvAnalysisView.MasterTableView.Rebind(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)