Just figured it out.
DataGridView1.C olumns(DataGrid View1.SelectedC olumns.ToString ).HeaderText = TextBox2.Text
Where:
Datagridview1 is your datagridview control
and Textbox2 is your Control to name the column
That only lets you name the first column
EDIT: Code does not work. Please reply telling me where I went wrong...
Leave a comment: