QueryWindow: fix underscore bug

This commit is contained in:
2023-10-25 16:18:33 +02:00
parent ba5d888e37
commit 105854c389

View File

@ -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,
});