DatacolChanged事件,加入代码
If e.DataCol.Name = "日期" The Dim d As Double = format(e.DataRow("日期"),"yyyyMMdd") e.DataRow("_Sortkey") = dEnd If