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
shane 0
NA
2
0
ComboBox DataBinding Weirdness
Feb 1 2005 12:44 AM
If I have an array of Customer objects and I bind it to multiple comboBoxes, why does changing one combobox affect the others? e.g. Customers[] customerArray = GetCustomers(); comboBox1.DisplayMember = "CustomerName"; comboBox1.ValueMember = "CustomerCode"; comboBox1.DataSource = customerArray; comboBox2.DisplayMember = "CustomerName"; comboBox2.ValueMember = "CustomerCode"; comboBox2.DataSource = customerArray; I have found that cloneing the array, removes this issue, but it is not a perfect solution, especially if the array is large. e.g. comboBox2.DataSource = customerArray.Clone()
Reply
Answers (
0
)
how to add datasource as a sub node in xml file
Form Location Changes When Using .Show versus .ShowDialog