Skip to content

Commit

Permalink
Fix Compatibility Level cell highlighting
Browse files Browse the repository at this point in the history
Fix cell highlighting on DB Options tab.  Cell should be yellow if there is a newer compatibility level available. #1043
  • Loading branch information
DavidWiseman committed Oct 2, 2024
1 parent bffdb66 commit c3ed71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DBADashGUI/Changes/DBOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ private void Detail_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
for (var idx = e.RowIndex; idx < e.RowIndex + e.RowCount; idx += 1)
{
var r = dgv.Rows[idx];
var maxCompatLevel = Convert.ToInt32(r.Cells["MaxSupportedCompatibilityLevel"].Value);
r.Cells["compatibility_level"].SetStatusColor(r.Cells["compatibility_level"].Value as int? < maxCompatLevel
var maxCompatLevel = Convert.ToInt16(r.Cells["MaxSupportedCompatibilityLevel"].Value);
r.Cells["compatibility_level"].SetStatusColor(Convert.ToInt16(r.Cells["compatibility_level"].Value) < maxCompatLevel
? DBADashStatus.DBADashStatusEnum.Warning
: DBADashStatus.DBADashStatusEnum.OK);

Expand Down

0 comments on commit c3ed71d

Please sign in to comment.