Navicat Premium 11.0.6 Registration Key Free Download
Download Navigation Licence Key
Navicat Premium 11.0.6 Registration Code Download
Navicat Premium 11.0.6 Keygen
Navicat Premium 11.0.6 Serial Key
Free Navicat Premium 11.0.6 Key
Navicat Premium 11.0.6 Free DownloadQ:
Adding new items to a collection
I am working on a project which involves populating a Listbox from a file I read from the file. The file is like this:
0912,Jim,Unknown,Other
0914,Bob,Alba,Business
0915,Charlie,Jamaica,Business
0916,Debbie,Unkown,Other
I create a new instance of an XmlNodeReader and I create a new collection (IEnumerable) and add all the items to it.
My question is:
How do I add a new item to the list without affecting the existing one in the Listbox?
A:
You're going to have to create a new listbox control to do this.
First create your listbox, set the ItemsSource property to your IEnumerable collection. Then, in your event handler for the button click, do the following:
ListBox1.Items.Add(new ListItem(new XmlNodeReader("0916,Bob,Alba,Business").ReadNextElement()));
Don't forget to clean up the listbox after you're done though!
UNPUBLISHED
UNITED STATES COURT OF APPEALS
FOR THE FOURTH CIRCUIT
No. 02-7113
SOCORRO B. WALLACE, be359ba680
Related links:
Comments