2015年2月3日

【WinForm】DatagridView列宽设置与对齐方式

摘要: 一、设置对齐方式1.列标题居中对齐dataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;但实际上看上去仍然偏左,这是因为存在排序三角形,可以设置列的SortM... 阅读全文

posted @ 2015-02-03 22:12 连一粝 阅读(362) 评论(0) 推荐(0) 编辑

导航