阅读背景:

DataGridView在DateTime列中使用null进行排序

来源:互联网 

I've got a DataGridView control in a Windows forms application. There are four columns with string data and three with DateTime data. I'm adding the rows programmatically using the Rows.Add() method. All of the columns have SortMode set to Automatic. Clicking the column headers to sort just works, except for the one DateTime column that has some nulls. When the user clicks that column's header, it throws an ArgumentException: Object must be of type DateTime.I've got a DataGridView control in a Windows fo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: