第一列数据覆盖行号

时间:2013-03-18 09:19:49

标签: c# winforms datagridview

在我的datagridview中,在我的第一列中,第一列数据覆盖了行号,我认为是rowheader问题,我已禁用“rowheader”属性并选择“showrownumber”属性为false。但它无法正常工作..

我可以设定的可能属性是(请告诉我是否有更多相关性)

this.dgvIndividualInfo.Margin = new System.Windows.Forms.Padding(4);
        this.dgvIndividualInfo.MultiSelect = false;
        this.dgvIndividualInfo.Name = "dgvIndividualInfo";
        this.dgvIndividualInfo.ReadOnly = true;
        this.dgvIndividualInfo.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
        this.dgvIndividualInfo.RowHeadersVisible = false;
        this.dgvIndividualInfo.RowHeadersWidth = 4;
        this.dgvIndividualInfo.ShowRowNumber = false;
        this.dgvIndividualInfo.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
        dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Black;
        this.dgvIndividualInfo.RowsDefaultCellStyle = dataGridViewCellStyle3;
        this.dgvIndividualInfo.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
        this.dgvIndividualInfo.Size = new System.Drawing.Size(482, 201);
        this.dgvIndividualInfo.TabIndex = 33;
隐藏rowheader后,

图像就像这样

image is like this

我想在最左边的列上删除它, 如果我错过了任何链接,请提出建议

0 个答案:

没有答案