I have a grid view and this grid view has a DataKeyNames="person_id"
Now I want this key as a primary key for the grid so no allowed duplicates .
How to prevent duplicate data through using DataKeyNames
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GridView is a presentation layer. It should not do any validation. I suggest you to check for duplicates in Data Access layer.