I have read numerous on-line articles on sorting a date column in DataGridView, however they are nearly all tied to a database of one kind or another. A few of them say if you make sure the data is of type DateTime the column will sort by clicking on the glyph of the column header. This is not true. I have converted my data to DateTime type and verified that it is by using the IsDate() method. It still sorts as if the data were strings or numbers. My solution, probably not a good one, is to add a column for sorting with dates converted to numeric values using ToFileTime(). This works because the ToFileTime() calculates the time from Jan 1 1601 to the date you enter and returns the numeric value which of course sorts properly.
I have read many of the MSDN articles or tutorials on sorting columns in DGV and not one of them that I can find sort dates, it is always strings or numbers.
Can an unbound DataGridView column really sort a DateTime filled column...I don't think so. But, if it can, how?