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
.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
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);
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
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)
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
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