DataGridView Edit Column Names
问题 Is there any way to edit column names in a DataGridView? 回答1: I don't think there is a way to do it without writing custom code. I'd implement a ColumnHeaderDoubleClick event handler, and create a TextBox control right on top of the column header. 回答2: You can also change the column name by using: myDataGrid.Columns[0].HeaderText = "My Header" but the myDataGrid will need to have been bound to a DataSource . 回答3: You can edit the header directly: dataGridView1.Columns[0].HeaderCell.Value =