Re: Gridview Linq Query

"Booth, Bill" <[email protected]> Thu, 11 Sep 2008 11:20:59 -0500
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <007EEAA9361F684C8633FDC5D0D6905101CCD213@xnoho2.palicexchange.ads>
Not=20sure,=20the=20gridview=20is=20bound=20to=20an=20IList(Of=20WorkSiteD=
ata)=20where
WorkSiteData=20is=20a=20class=20and=20what=20I=20really=20need=20to=20get=20=
is=20unique
selected.=20

-----Original=20Message-----
From:=20Discussion=20of=20development=20on=20the=20.NET=20platform=20using=
=20any=20managed
language=20[mailto:[email protected]]=20On=20Behalf=20Of=20Ph=
il
Sayers
Sent:=20Thursday,=20September=2011,=202008=2010:52
To:[email protected]
Subject:=20Re:=20[DOTNET-CLR]=20Gridview=20Linq=20Query

Any=20chance=20you=20can=20run=20the=20linq=20against=20the=20underlying=20=
datasource=20of=20the
grid=20and=20not=20the=20grid=20itself?

Does=20the=20underlying=20data=20source=20have=20those=20properties=20set=20=
"As=20Object"=20or
as
the=20appropriate=20Type=20you=20are=20looking=20for?


-----Original=20Message-----
From:=20Discussion=20of=20development=20on=20the=20.NET=20platform=20using=
=20any=20managed
language=20[mailto:[email protected]]On=20Behalf=20Of=20Booth=
,=20Bill
Sent:=20Thursday,=20September=2011,=202008=2011:46=20AM
To:[email protected]
Subject:=20[DOTNET-CLR]=20Gridview=20Linq=20Query


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.
Any=20advice=20will=20be=20appreciated.
Bill

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
privileged
and=20is=20intended=20solely=20for=20the=20addressee.=20If=20you=20have=20=
received=20this
e-mail
in=20error,=20you=20are=20hereby=20notified=20that=20any=20use,=20distribu=
tion,=20or=20copying
of
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=20list=20is=20hosted=20by=20DevelopMentor.=20=20http://www.develop.co=
m

View=20archives=20and=20manage=20your=20subscription(s)=20at
http://discuss.develop.com

=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=20list=20is=20hosted=20by=20DevelopMentor(r)=20=20http://www.develop.=
com

View=20archives=20and=20manage=20your=20subscription(s)=20at
http://discuss.develop.com

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