I have a problem when try to change datagridview`s column header name.
After i changed the column header name from name Column 1 to Year i am trying to get the value of the cell of that column with command
- row.cells("HEADERNAME").value
and it says that Year column cannot be found. I tried the command to row.cells("Column1").value after is changed to Year and it works .
whys that ? is there anything else i have to do in order to save changes ? i can see that the column header name is changed normaly.
Me.DataGridView1.Columns(i).Name = "Year"