技术改变人生!

winform 自动化工具dataGrid属性设置

上一篇 / 下一篇  2014-07-17 09:43:57 / 个人分类:构建工具

            this.A.Location = new System.Drawing.Point(15, 15);
            this.A.Name = "A";
            this.A.Size = new System.Drawing.Size(951, 623);
            this.A.TabIndex = 0;

            this.A.AllowUserToAddRows = false;
            this.A.AllowUserToDeleteRows = false;
            this.A.AllowUserToOrderColumns = true;
            this.A.AllowUserToResizeRows = false;
            this.A.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
            this.A.BackgroundColor = System.Drawing.SystemColors.ActiveBorder;
            this.A.ColumnHeadersBorderStyle. = System.Windows.Forms.DataGridViewHeaderBorderStyle.Sunken;
            this.A.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.A.Dock = System.Windows.Forms.DockStyle.Fill;
            this.A.EnableHeadersVisualStyles = false;
            this.A.GridColor = System.Drawing.SystemColors.GradientActiveCaption;

            this.A.MultiSelect = false;

            this.A.ReadOnly = true;
            this.A.RowHeadersVisible = false;
            this.A.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
            this.A.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.A.VirtualMode = true;


TAG:

 

评分:0

我来说两句

Open Toolbar