I am trying to get list of Dates of the year of manufacture for determining the age of vehicles. My column looks like this:
and my code looks like this
partial void Reports_InitializeDataWorkspace(List<IDataService> saveChangesTo) {
// year of manufacture
var yom = InsuranceQuotations.SelectedItem.mYear;
var bday = Convert.ToDateTime(yom);
DateTime today = DateTime.Today;
int age = today.Year - bday.Year;
if (bday > today.AddYears(-age)) age--;
Age = Convert.ToString(age);
}
I can only select the fist date in the column. How could I loop through all dates in the column?

You can loop through the Insurance quotes:
Note: I'm making some presumptions here. One is that your grid of insurance quotes are of type
InsuranceQuoteand two that the data collection on the screen is calledInsuranceQuotes.