DoubleBuffered

        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);

Description

DoubleBuffer any control

Details

Double click on the code to select all.

 

;