public GridView() : base() { this.BeginInit(); this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.FixedHeight | ControlStyles.FixedWidth | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.UserPaint, true); this.UpdateStyles(); this._columns = new GridViewColumnCollection(this); this.EndInit(); }