Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
remove duplicates from datagridview - c#
Eline Sami
Jun 1 2015 12:07 AM
5.1k
Reply
Hello
In my windows form application, I have a datagridview with four columns. my datagridview is
NOT
bound
to a data source. but it reads data from different application during the runtime.
How to prevent adding new rows during the run time if the Patient ID is already exist in the table?
Example:
PatientID PatientName Gender Age
Abcd1234 xxxxxx xxxxxx xxxxxx
FIxIlm568 xxxxxx xxxxxx xxxxxx
na7a5419 xxxxxx xxxxxx xxxxxx
If for example the patientId found twice on the list, then the datagridview will not add another row with that patientID. the new row will be deleted automatically (if the patientID got duplicated).
Can you help me on this, plz?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Web Scraping using C#
How to Change format DateTime column in query for sqlite?