Quote:
See if you want the challenge to fix this code.
|
e.Gender should be emp.Gender
Quote:
My question then becomes how responsive is Wrox to the errata that is submitted by the users of their books?
|
In general: pretty good once you get past the errata form that asks a million questions, including your pet name and your **************** size ;-) Kidding aside, the process from Wrox to the author seems pretty quick, but then it depends on the author how long it takes for a reply. For my own books, I've looked at every errata item I've been sent and either confirmed the issue (which then got posted on the Wrox site), or explained why the submitted issue wasn't wrong or incorrect.
Quote:
But my other question is if I wanted to write the output of the employeeId number in the code up above to a Gridview or a Listbox what do you think is the quickest and easiest approach to take?
|
Assign a Data Source and call DataBind:
Code:
myGridView.DataSource = employees;
myGridView.DataBind();
This provides the entire Employee object to the grid, giving you access to all of its other properties. If you only need the ID, you could modify the LINQ query to select an anonymous object with only the employee ID.
Hope this helps,
Imar