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 Public Class GridLoader
Inherits BaseClass Inherits BaseClass
Public Sub New(pLogConfig As LogConfig, pTemplateConfig As Winline.Configuration) Public Sub New(pLogConfig As LogConfig)
MyBase.New(pLogConfig, pLogConfig.GetLogger()) MyBase.New(pLogConfig, pLogConfig.GetLogger())
End Sub End Sub
@ -28,7 +28,13 @@ Public Class GridLoader
If oCol.Config.IsVisible = False Then If oCol.Config.IsVisible = False Then
oVisibleIndex = -1 oVisibleIndex = -1
Else Else
oVisibleIndex = oCol.Config.OrderKey ' 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 End If
Else Else
oVisibleIndex = 0 oVisibleIndex = 0