DoubleBuffered
DoubleBuffer any control
Source
public static void DoubleBuffered<T>(this T obj, bool isDoubleBuffered)
{
Type dgvType = obj.GetType();
PropertyInfo pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.SetProperty);
pi.SetValue(obj, isDoubleBuffered, null);
}
Example
this.DoubleBuffered(true);