Easier column configuration

This commit is contained in:
Jonathan Jenne 2021-11-18 13:28:33 +01:00
parent 1366343cdf
commit 6693ac770e

View File

@ -8,7 +8,7 @@ Imports MultiTool.Shared.Constants
Public Class GridLoader
Inherits BaseClass
Public Sub New(pLogConfig As LogConfig, pTemplateConfig As Winline.Configuration)
Public Sub New(pLogConfig As LogConfig)
MyBase.New(pLogConfig, pLogConfig.GetLogger())
End Sub
@ -27,9 +27,15 @@ Public Class GridLoader
If oCol.Config IsNot Nothing Then
If oCol.Config.IsVisible = False Then
oVisibleIndex = -1
Else
' If OrderKey is 0, set to a high number to
' push this column to the end of the grid
If oCol.Config.OrderKey = 0 Then
oVisibleIndex = 99
Else
oVisibleIndex = oCol.Config.OrderKey
End If
End If
Else
oVisibleIndex = 0
End If