Re: Learning LINQ - update

2012-03-15 Thread Ben Scott
I don't know GridView very well (or LINQ to SQL), but to rule out deferred execution being the problem you could change "GridViewStaff.DataSource = stafflist;" to "GridViewStaff.DataSource = stafflist.ToList();". Calling ToList() will execute the query and returns an IList<> instead of IEnumerable

RE: Learning LINQ - update

2012-03-15 Thread Bill McCarthy
.ToList ;) |-Original Message- |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet- |boun...@ozdotnet.com] On Behalf Of Peter Maddin |Sent: Friday, 16 March 2012 5:50 PM |To: 'ozDotNet' |Subject: RE: Learning LINQ - update | |I just threw together a quick console application using the sa

RE: Learning LINQ - update

2012-03-15 Thread Peter Maddin
I just threw together a quick console application using the same code static void Main(string[] args) { var conn = ConfigurationManager.ConnectionStrings["PathWestStaffConnectionString"].Conn ectionString; var staffDetails = new StaffDataContext(conn);

Learning LINQ

2012-03-15 Thread Peter Maddin
I have a new project so I would thought here is an opportunity to embrace LINQ, or in my case LINQ to SQL (at this stage). I have a simple SQL Server database and I just want to get retrieve the records and bind it to a Web GridView - nothing flash. I have tested this in LINQPad string

RE: OT: windows environment variables not working

2012-03-15 Thread Peter Maddin
I found a web page that indicated that if the value for PATH has grown too large it can cause problems with %windir% and presumably other environmental variables. I checked this out and found there was indeed some bloating with duplicated entries (from installing various flavours of PERL IDEs)

Re: [OT] My new monitor is unreadable (SOLVED)

2012-03-15 Thread mike smith
On Thu, Mar 15, 2012 at 5:48 PM, David Connors wrote: > On Thu, Mar 15, 2012 at 4:44 PM, Greg Keogh wrote: >> >> >Use display port if you can. That presents the audio sockets on the >> > monitor to windows as audio in/out etc for your desktop speakers/headsets >> > etc. DisplayPort is the best te

RE: OT: windows environment variables not working

2012-03-15 Thread Peter Maddin
Thanks Downloaded it and installed it. I will have to go through the all the shell extensions and do a bit of a purge of those that are obvious candidates. Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday