public Row GetRowByID(int id) { int headerId = GetIndexOfID(); foreach (Row r in Rows) { if (r.Values.ToList().ElementAt(headerId).Equals(id)) return r; } return null; }