This question is locked. New answers and comments are not allowed.
Hello,
I've selected OpenAccessDataSource as a dataSource of my RadGrid and choosen automatic-generated insert, delete and update command provided by RadGrid capabilities. I am able to insert rows to the grid without any errors and it normally reflects in the database. But when I try to update or to delete any row I get the following exception:
Changes are not possible if the primary key fields are not visible.
Please specify the id and version fields in the persistent attribute.
[Telerik.OpenAccess.Persistent(IdentityFied="id", VersionField="version"]
It's hard to understand how primary key fields can be not visible. Not visible for whom?
The version field is not set in the persistent attribute on my class. I wonder if version is really required in my case. For test I've tried to generate my version column and set version field to be equal its name, but it didn't fix the issue. Please, advise.
Thanks.
I've selected OpenAccessDataSource as a dataSource of my RadGrid and choosen automatic-generated insert, delete and update command provided by RadGrid capabilities. I am able to insert rows to the grid without any errors and it normally reflects in the database. But when I try to update or to delete any row I get the following exception:
Changes are not possible if the primary key fields are not visible.
Please specify the id and version fields in the persistent attribute.
[Telerik.OpenAccess.Persistent(IdentityFied="id", VersionField="version"]
It's hard to understand how primary key fields can be not visible. Not visible for whom?
The version field is not set in the persistent attribute on my class. I wonder if version is really required in my case. For test I've tried to generate my version column and set version field to be equal its name, but it didn't fix the issue. Please, advise.
Thanks.