DataGridView的其它设立

DataGridView的其它设置1,自动列宽设置this.GridColor Color.Greenthis.BackgroundColor Color.Linen

DataGridView的其它设置
1,自动列宽设置

this.GridColor = Color.Green;            this.BackgroundColor = Color.Linen;            this.VirtualMode = true;            this.AllowUserToAddRows = false;            this.AllowUserToDeleteRows = false;            this.AllowUserToOrderColumns = true;            this.AllowUserToResizeColumns = true;            this.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;            this.ReadOnly = true;            this.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;