title: Count number of rows in DataTable that meet some criteria
body: <pre><code>DataTable dt = GetDataTable();
  
  if(field=="TaskId")
  {
      string value = ((e.Item as GridFilteringItem)[field] as GridTableCell).Column.CurrentFilterValue
      int VALUE = Int32.Parse(value);           
      int numberOfRecords = dt.Select("TaskId = VALUE").Length;
  </code></pre>
  
  <p>I want to count the number of rows in a <code>DataTable</code> that have a <code>TaskId == value</code>.</p>
  
  <p>This code is throwing an error saying no column found TaskId[value].</p>