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;