You can allow the update of the PK by setting the ReadOnly property to FALSE. Then you will have to change the UPDATE comand in the datasource. However, I don't recommend this. There is NO reason for a user, or ANYONE to change a primary key, and that is why the gridview by default will not allow it, even if there is no related data or it is not an autogenerate column
|