C# DataGridView控件用代码关闭列自动排序功能 DataGridViewTextBoxColumn Col_LABEL_NAME = new DataGridViewTextBoxColumn();//初始化实例 Col_LABEL_NAME.HeaderText = "模板名称";//列标题名称 Col_LABEL_NAME.SortMode = DataGridViewColumnSortMode.NotSortable;//关闭列自动排序功能 关闭前 关闭后