I have a collection ItemDemandCollection which is connected to a data grid. If a user enters the same data then an alert message needs to show the duplication of data.
How can I handle this?
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.
Try using ICollection.Contains(T), for the entered data.
Find more about Collection.Contains Method