After a SQL Select * query which results in one row, I set
foundrows = Variables.PeopleTable.Select(SelectString);
ThisRow = foundrows[0];
I set one DateTimePicker to a field StartDate:
dateTimePicker1.Value = Convert.ToDateTime(ThisRow["StartDate"].ToString());
But a watch I have set on ThisRow["EndDate"] tells me that the name EndDate does not exist in the current context. The SQL table shows it is NULL. There are a lot of items on SO about how to handle this when the query result gives one value, rather than a complete row. Cast Null DateTime Value From Database? suggests it is simple, but if the value is not in this context that will stop any solution. I've checked the spelling of the field. Any suggestions?