你的operdate 的数据类型是什么?
我测试operdate是DateTime类型和String类型,都无法重现你的问题。
我的完整测试代码如下:
- Dim id As Integer = 1
- Dim code As String = "test1"
- Dim operuser As DateTime = New DateTime(2016, 6, 2, 10, 10, 10)
- Dim operdate As String = "2016/6/2 08:30"
- Dim items As Object() = {"", id, code, operuser, operdate}
- Me.C1FlexGrid1.AddItem(items, 1, 0)
复制代码 |