title: Set the selected item of an XAM Datagrid programatically according to its name
body: <p>Something along the lines of this.</p>
  
  <pre><code>private void SearchResult(string nameOfBean)
  {
      foreach (Record VARIABLE in mbeanDataGrid.Records)
      {
          if (VARIABLE.ToString().Contains(nameOfBean))
          {
              ((VARIABLE as DataRecord).DataItem as Record).IsSelected = true;
          }
      }
  }
  </code></pre>
  
  <p>However i know this syntax is wrong and im looking some advice! Pretty much to select the item (As if you had clicked on it) via code. According to its name.</p>