Gridview Linq Query
"Booth, Bill" <[email protected]> Thu, 11 Sep 2008 10:46:09 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <007EEAA9361F684C8633FDC5D0D6905101CCD212@xnoho2.palicexchange.ads> |
Hi=20All, I=20am=20trying=20to=20run=20a=20Linq=20query=20on=20a=20GridView=20Rows=20= Collection=20that=20will select=20the=20distinct=20contents=20of=20one=20cell.=20The=20query=20belo= w=20will=20do=20the job;=20however,=20it=20uses=20late=20binding.=20The=20variables=20cust=20a= nd=20customerList are=20both=20object=20types.=20I=20just=20cannot=20seem=20to=20get=20aroun= d=20this.=20 Any=20advice=20will=20be=20appreciated.=20 Bill=20 Dim=20gridList=20As=20GridViewRowCollection=20=3D=20CustomerGrid.Rows Dim=20customerList=20=3D=20From=20cust=20In=20gridList=20_ =20=20=20=20=20Select=20cust.Cells(4).Text=20_ =20=20=20=20=20Distinct For=20Each=20i=20In=20customerList =20=20=20=20=20=20Debug.WriteLine(i) Next The=20information=20in=20this=20e-mail=20is=20confidential,=20may=20be=20l= egally=20privileged=20and=20is=20intended=20solely=20for=20the=20addressee= .=20If=20you=20have=20received=20this=20e-mail=20in=20error,=20you=20are=20= hereby=20notified=20that=20any=20use,=20distribution,=20or=20copying=20of=20= this=20communication=20is=20strictly=20prohibited. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor=AE http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com