Select and sum DataTable rows with criteria
问题 I have this data table: DataTable dt = new DataTable(); dt.Columns.Add("BBG IPC code", typeof(double)); dt.Columns.Add("Issuer Group", typeof(string)); dt.Columns.Add("Seniority", typeof(string)); dt.Columns.Add("Nom Value", typeof(double)); dt.Columns.Add("Mkt Value", typeof(double)); dt.Columns.Add("Rating", typeof(string)); dt.Columns.Add("Sector", typeof(string)); dt.Columns.Add("Analyst", typeof(string)); dt.Rows.Add(new object[] { 117896, "Financiere", "Senior", 101, 20000.76, "BB",