DataGridView Edit Column Names

Dested picture Dested · Sep 24, 2008 · Viewed 63.9k times · Source

Is there any way to edit column names in a DataGridView?

Answer

Ryan Spears picture Ryan Spears · Sep 24, 2008

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.