diff options
author | emkael <emkael@tlen.pl> | 2017-11-18 13:01:22 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-11-18 13:01:22 +0100 |
commit | 3e81ce7e22d6405d31425b835c3d1fb24c052daa (patch) | |
tree | dfd6901d9354584729615f05994f9d715e4402cb /Aktywator/Tournament.cs | |
parent | a1ff38c72ff67fd980e7354645ed51159d10575e (diff) |
Fixing issues with adding rows to data grid
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r-- | Aktywator/Tournament.cs | 3 |
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) |