public static DataRow GetThreshold(int filter_id) { DataSet ds = ProfileMetric.GetThresholdData(true); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { DataRow dr = ds.Tables[0].Rows.Find(filter_id); return(dr); } return(null); }
private void BindGrid() { gvThresholds.DataSource = ProfileMetric.GetThresholdData(false); //sets values to current user session or database gvThresholds.DataBind(); }