private void SaveFieldData() { var newFields = ( from DataGridViewRow row in fieldData.Rows where !row.IsNewRow select row.Cells[0].Value.ToString() into fieldName select new Field { fieldName = fieldName }).ToList(); ApplicationData.Fields.Clear(); foreach (var i in newFields) { ApplicationData.AddField(i); } }