我在一个BUTTION按钮事件里面输入
#region//datagridview单元格内容居中下面是dataGridView1内容居中
                System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
                dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
                this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle1;
                #endregion
不知道为什么第一个单元格内容是居中了,但是从第二个单元格一直到后面都不是居中显示的。实在是没有办法如何调试了,在这里请求各位大侠帮帮小弟,如何解决这个问题,在线跪求大侠帮忙。叩谢