support NULL for date index defaultvalue

This commit is contained in:
Jonathan Jenne
2020-06-08 15:34:27 +02:00
parent db96da42ed
commit 782093fd79
3 changed files with 10 additions and 4 deletions

View File

@@ -363,7 +363,7 @@ Public Class ClassControls
End Sub
Public Function AddDateTimePicker(indexname As String, y As Integer, DataType As String) As DevExpress.XtraEditors.DateEdit
Public Function AddDateTimePicker(indexname As String, y As Integer, DataType As String, Vorgabe As String) As DevExpress.XtraEditors.DateEdit
Dim oPicker As New DevExpress.XtraEditors.DateEdit With {
.Name = "dtp" & indexname,
.Size = New Size(260, 27),
@@ -373,6 +373,11 @@ Public Class ClassControls
.IndexType = DataType
}
}
If Vorgabe = "NULL" Then
oPicker.EditValue = Nothing
End If
oPicker.Properties.AppearanceFocused.BackColor = Color.Lime
Return oPicker