|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do i bind to a collectionthis.BindingContext.Add(Class1.PropertyName, dataview, "Name"); Now i have a data Relation which can return muliple rows. Here is the construct CurrencyManager cm = (CurrencyManager)this.BindingContext[dataview, "StudentsWithLastNameX"]; while( cm.Position < cm.Count) { this.BindingContext.Add(Class1.Stutdents, dataview, "FirstName"); <-------- I want to add binding to FirstName with a collection instead of property. cm.Position ++; } Can anyone suggest how do go about doing this? Thanks Vivek |
|||||||||||||||||||||||