Skip to content

Commit c0b19b7

Browse files
committed
fix cell background colors
1 parent a040e70 commit c0b19b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BlueM.Opt/Main/SolutionDialog.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ Partial Public Class SolutionDialog
8080
For Each feature As ObjectiveFunction In Me.mProblem.List_ObjectiveFunctions
8181
column = New DataGridViewTextBoxColumn With {
8282
.Name = feature.Description,
83-
.ReadOnly = True,
84-
.DefaultCellStyle = cellstyle.Clone()
83+
.ReadOnly = True
8584
}
8685
If (feature.isPrimObjective) Then
8786
cellstyle.BackColor = Color.LightGreen
@@ -92,6 +91,7 @@ Partial Public Class SolutionDialog
9291
column.HeaderText = feature.Description
9392
column.HeaderCell.ToolTipText = "Secondary objective function"
9493
End If
94+
column.DefaultCellStyle = cellstyle.Clone()
9595
Me.DataGridView1.Columns.Add(column)
9696
Next
9797

0 commit comments

Comments
 (0)