title: Datatable Grouping Using Linq and VB .NET
body: <p>I'm completely dense here, but I'm trying to get some stats from a DataTable.  One of the columns in the datatable is called "colour".</p>
  
  <p>I need to find out how many of each instance of "colour" are in the datatable.</p>
  
  <p>I'm trying:</p>
  
  <pre><code>Dim q = From p In PGWorkingDataTable _
              Group p By p("colour") Into Group _
              Select Group
  </code></pre>
  
  <p>But I get the compiler error at design-time:
  "Range variable name can be inferred only from a simple or qualified name with no arguments" on the p("colour") section.</p>
  
  <p>I need some serious guidance here.  Thanks for your help.</p>
  
  <p>Joe</p>