From 105854c3890342881c23cf3a5a4610983483a5c8 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 25 Oct 2023 16:18:33 +0200 Subject: [PATCH] QueryWindow: fix underscore bug --- Elwig/Windows/QueryWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Windows/QueryWindow.xaml.cs b/Elwig/Windows/QueryWindow.xaml.cs index 630d493..860374a 100644 --- a/Elwig/Windows/QueryWindow.xaml.cs +++ b/Elwig/Windows/QueryWindow.xaml.cs @@ -44,7 +44,7 @@ namespace Elwig.Windows { for (int i = 0; i < header.Count; i++) { var h = header[i]; DataList.Columns.Add(new DataGridTextColumn { - Header = h.ColumnName, + Header = h.ColumnName.Replace("_", "__"), Binding = new Binding($"[{i}]"), CellStyle = (h.DataTypeName == "INTEGER" || h.DataTypeName == "REAL") ? styleRight : null, });