summaryrefslogtreecommitdiff
path: root/Aktywator/Tournament.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-11-18 13:01:22 +0100
committeremkael <emkael@tlen.pl>2017-11-18 13:01:22 +0100
commit3e81ce7e22d6405d31425b835c3d1fb24c052daa (patch)
treedfd6901d9354584729615f05994f9d715e4402cb /Aktywator/Tournament.cs
parenta1ff38c72ff67fd980e7354645ed51159d10575e (diff)
Fixing issues with adding rows to data grid
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r--Aktywator/Tournament.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index fd6fec1..117b1da 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -61,6 +61,8 @@ namespace Aktywator
{
grid.Rows.Remove(r);
}
+ grid.Update();
+ grid.Refresh();
}
virtual internal bool updateNameListRow(DataGridView grid, int pairNumber, List<string> names)
@@ -97,6 +99,7 @@ namespace Aktywator
row.Cells.Add(cell);
}
grid.Rows.Add(row);
+ grid.FirstDisplayedScrollingRowIndex = grid.RowCount - 1;
}
virtual internal void clearCellLocks(DataGridView grid)