Skip to content

Commit

Permalink
Turn off autosize to speed it up + check the correct cells.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewNaylor committed Oct 5, 2020
1 parent fb80a9d commit 6534168
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guinget/MainWindow.vb
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,12 @@ Public Class aaformMainWindow
' Reset progress bar to 0.
aaformMainWindow.toolstripprogressbarLoadingPackages.Value = 0

For Each column As DataGridViewColumn In aaformMainWindow.datagridviewPackageList.Columns
column.AutoSizeMode = DataGridViewAutoSizeColumnMode.NotSet
Next

For Each PackageRow As DataGridViewRow In aaformMainWindow.datagridviewPackageList.Rows
If Not PackageRow.Cells.Item(2).Value.ToString = PackageRow.Cells.Item(3).Value.ToString Then
If Not PackageRow.Cells.Item(4).Value.ToString = PackageRow.Cells.Item(5).Value.ToString Then
PackageRow.Visible = False
Else
PackageRow.Visible = True
Expand Down

0 comments on commit 6534168

Please sign in to comment.