Combobox liée a un ArrayList
Bonjour,
Je n'arrive pas a raffraichir mon combobox apres l'ajout d'un élément dans mon ArrayList.
Quelqu'un aurait-il une idée ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| this._reviewList = new ArrayList();
BookReview br = new BookReview();
br.Author = "moi";
this._reviewList.Add(br);
BookReview br2 = new BookReview();
br2.Author = "il";
this._reviewList.Add(br2);
BookReviewList.DataSource = this._reviewList;
BookReviewList.DisplayMember = "Author";
BookReview br1 = new BookReview();
br1.Author = "toi";
this._reviewList.Add(br1);
BookReviewList.Refresh(); |
"Moi" et "il" sont bien affiché mais pas le "toi".
Yoshio