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
anamika sharma
NA
5
11.4k
to avoid the duplicates item insert in listview
Oct 8 2012 4:02 AM
ListViewItem item;
item = new ListViewItem(new[] { comboBox1.SelectedItem.ToString(), comboBox2.SelectedItem.ToString(), comboBox3.SelectedItem.ToString() });
//listView1.Items.Add(item);
if (!listView1.Items.Contains(item))
{
Add the item to the ListView Control
listView1.Items.Add(item);
}
else
{
listView1.Items.Remove(item);
// // //Warn user of duplicate entry...
// //MessageBox.Show("Duplicate Item!");
}
Reply
Answers (
3
)
How to create GroupWise
Type Conversion for UI.UserControl When its in a Class Library