TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Renjith R
NA
14
6.9k
How to prevent insertions of duplicate record into datatable
Jan 21 2015 5:10 AM
foreach (Selected s1 in objlistCropped)
{
string strImg2 = s1.Image;
if (strImg1 == strImg2)
{
dtPreInstallation.Rows.Add(strImg2, s.strText);
}
}
strImg1 = Img1.Jpeg,
I need to restrict adding img1.jpeg again if its already there in datatable.
Thanks in Advance
Reply
Answers (
1
)
regex
please check the code for colring alternate rows