Re-added double buffering.
This commit is contained in:
parent
957bec1c7f
commit
f81552565a
1 changed files with 9 additions and 1 deletions
|
|
@ -38,7 +38,15 @@ namespace LibationWinForms
|
|||
// sorting breaks filters. must reapply filters after sorting
|
||||
_dataGridView.Sorted += (_, __) => Filter();
|
||||
_dataGridView.CellContentClick += DataGridView_CellContentClick;
|
||||
}
|
||||
|
||||
EnableDoubleBuffering();
|
||||
}
|
||||
private void EnableDoubleBuffering()
|
||||
{
|
||||
var propertyInfo = _dataGridView.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
|
||||
|
||||
propertyInfo.SetValue(_dataGridView, true, null);
|
||||
}
|
||||
|
||||
#region Button controls
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue