Show empty string for DateTime.MinValue in Export form

This commit is contained in:
Jonathan Jenne
2022-01-24 10:46:16 +01:00
parent 706edf8026
commit 82bd76d669
2 changed files with 19 additions and 13 deletions

View File

@@ -214,4 +214,10 @@ Public Class frmExportMain
Private Sub BarButtonItem3_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem3.ItemClick
FormHelper.TryOpenDirectory(My.GeneralConfiguration.TemplateDirectory, My.Resources.frmImportMainExtra.Vorlagenverzeichnis)
End Sub
Private Sub GridViewDocuments_CustomDrawCell(sender As Object, e As DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs) Handles GridViewDocuments.CustomDrawCell
If e.Column.ColumnType = GetType(Date) AndAlso e.CellValue = Date.MinValue Then
e.DisplayText = ""
End If
End Sub
End Class