Hi Greg

Since you are grouping by "Model", the "Serial" and "ID" fields are not
available as such.
Just like in SQL ;-)

Not sure what your intent is... but try

select new
{
modelGroup.Key,
Count = modelGroup.Count()
};

.peter.gfader.
http://peitor.blogspot.com/
http://twitter.com/peitor

On Wed, Apr 28, 2010 at 8:25 PM, Greg Keogh <[email protected]> wrote:

>  Folks, I’m using a LINQ GroupBy on a strongly typed DataTable and I’m
> getting this:
>
>
>
> The name 'itemrow' does not exist in the current context
>
>
>
> I’m trying to group the rows by the Model column with the { Serial, id } as
> the children. My code is the spitting image of dozens of samples I see on
> the web. What on earth is wrong with it. I suppose I’m going code blind
> again.
>
>
>
> Greg
>
>
>

<<image001.png>>

Reply via email to