0

I've got an asp.net GridView that includes a data column that is a secondary key. When I remove that column from the GridView columns section, update fails because it says that column does not exist.

How can I not show the column and also have the update still work?

Thanks for any help on this.

  • Can you post some code, that would help, are you simply databinding the dataset to the gridview and then getting that dataset afterwards for the update? Lets see how you are doing it boss. – TGarrett Jun 02 '16 at 16:01
  • Yes and thanks @The_Black_Smurf I was missing the DataKeyNames = "Outlook_ID" field. – David Shredder Jun 02 '16 at 16:06

0 Answers0