I change the header name of a datagridview using the following code
Me.DataGridView1.Columns(0).HeaderText = "xxxx"
How can I apply this change to the Access database? Like when I rename first column in datagrid view I want the first column in database to be the same.
There isn’t a .Net API that allows changes to the gridview’s headers to propagate back to the database’s columns. The gridview object supports binding to multiple sources (among those MS Access, Sql Server, Oracle, Object collections etc.) and does not contain the DDL logic required to update the SQL based data sources. Therefore, you will need to perform two separate actions: one on the access database and one within the asp.net code.