Daily Archives: January 30, 2009
Disable Column Sort in DataGridView
DataGridView has column sorting enabled by default. It’s usually a good thing but in some rare cases it can be a problem and should be disabled. To disable it, add a ColumnAdded event: this.dataGridView1.ColumnAdded += new System.Windows.Forms.DataGridViewColumnEventHandler( this.dataGridView1_ColumnAdded); and add … Continue reading
Posted in C#, Programming, Tutorials
3 Comments