窗口中的afterload事件:
Dim dtb As New DataTableBuilder("Temp")
dtb.AddDef("TestT", GetType(Date), "", "检查时间")
Dim t As Table = e.Form.Controls("Table1").Table
t.DataSource = dtb.Build(true)
For Each c As Col In t.Cols
c.TextAlign = TextAlignEnum.Center
If c.Name = "TestT" Then
c.DataCol.SetDateTimeFormat(DateTimeFormatEnum.Time)
End If
Next
t.AllowEdit = true
然后这个表在编辑时,在检查时间列输入例如09:30,它会自动变成00:00?