摘要: 代码设置DataGridView列表头居中:DataGridViewCellStyle style = new DataGridViewCellStyle(); style.Alignment = DataGridViewContentAlignment.MiddleCenter; _datagridview.ColumnHeadersDefaultCellStyle = style;winform 里面让控件获得焦点:1.在窗体的Paint事件 里写 Focus() private void panel1_Paint(object sender, ... 阅读全文
posted @ 2012-06-19 16:03 iskyoole 阅读(178) 评论(0) 推荐(0) 编辑