DataGridView 表格排序后颜色丢失

添加事件DataBindingComplete,在dataGridView1_DataBindingComplete对DataGridView进行渲染(处理绑定数据源后颜色的修改)

this.dataGridView1.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dataGridView1_DataBindingComplete);

posted @ 2019-10-10 11:23  Uniqueness  阅读(560)  评论(0编辑  收藏  举报