diff --git a/EduNetworkBuilder/VLANConfig.cs b/EduNetworkBuilder/VLANConfig.cs index 2b437a7..eae6cef 100644 --- a/EduNetworkBuilder/VLANConfig.cs +++ b/EduNetworkBuilder/VLANConfig.cs @@ -54,7 +54,10 @@ namespace EduNetworkBuilder if (dgv_VLANNames.Columns.Count > 0) { dgv_VLANNames.Columns[0].ReadOnly = LockedNames; - dgv_VLANNames.Columns[1].ReadOnly = LockedNames; + if (theNet.VLANPacketColors && dgv_VLANNames.Columns.Count > 1) + { + dgv_VLANNames.Columns[1].ReadOnly = LockedNames; + } if(theNet.VLANPacketColors && dgv_VLANNames.Columns.Count > 2) { dgv_VLANNames.Columns[2].ReadOnly = LockedNames;