这样的话,你得把事件改为字符型列才行。
你可以正常赋值:
e.DataRow("时间") = Date.Today()
然后在DrawCell事件中设置代码:
if e.Col.Name = "时间" Then
if e.Row.Isnull("时间") = False Then
e.Text = Foramt(e.Row("时间"),"yyyyMMdd")
end if