This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C641EE.DC40BD50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I know how to bind to a property in a class like this :

this.BindingContext.Add(Class1.PropertyName, dataview, "Name");



Now i have a data Relation which can return muliple rows. Here is the =
construct

CurrencyManager cm =3D (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
------=_NextPart_000_0006_01C641EE.DC40BD50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I know how to bind to a property in a =
class like=20
this :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#008000=20
size=3D2>this.BindingContext.Add(Class1.PropertyName, dataview,=20
"Name");</FONT></DIV>
<DIV><FONT face=3DArial color=3D#008000 size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now i have a data Relation which can =
return muliple=20
rows. Here is the construct</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CurrencyManager cm =3D=20
(CurrencyManager)this.BindingContext[dataview,=20
"StudentsWithLastNameX"];</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>while( cm.Position &lt; =
cm.Count)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT=20
color=3D#ff0000>this.BindingContext.Add(Class1.Stutdents, dataview,=20
"FirstName");</FONT>&nbsp;&nbsp; <STRONG>&lt;-------- I want to add =
binding to=20
FirstName with a collection instead of property.</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; cm.Position =
++;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone suggest how do go about =
doing=20
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Vivek</FONT></DIV></BODY></HTML>

------=_NextPart_000_0006_01C641EE.DC40BD50--