DataGridView sorting table after the loss of color

Add an event DataBindingComplete, to render DataGridView (modified bound data source processing color) in dataGridView1_DataBindingComplete

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

Guess you like

Origin www.cnblogs.com/DerekDeng/p/11646805.html