I am getting this weird error... the primary key in my database is \'DocumentID\' so I know that is not the issue. I am trying to get the select,edit & delete gridview b
It seems that your sqldatasource does not return the DocumentId column.
Maybe you should change the datasource definition to this: