From 8dba67d3e127835cdcb8ea4175681162f83313f3 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Thu, 21 Apr 2022 15:52:19 +0200 Subject: [PATCH] Add some code for future formatting of values --- MultiTool.Form/GridLoader.vb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MultiTool.Form/GridLoader.vb b/MultiTool.Form/GridLoader.vb index ba2ea47..552db61 100644 --- a/MultiTool.Form/GridLoader.vb +++ b/MultiTool.Form/GridLoader.vb @@ -48,6 +48,12 @@ Public Class GridLoader .VisibleIndex = oVisibleIndex } + ' TODO: Correclty format all values, but especially currency and numbers + 'If oCol.DataType = ColumnType.Decimal Then + ' oColumn.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric + ' oColumn.DisplayFormat.FormatString = "c2" + 'End If + oView.Columns.Add(oColumn) Next