title: How to find a WpfCell in a WpfTable with a selected value?
body: <p>I'm making with Visual Studio 2013 Coded UI Tests for the WPF-application of my company.
  In that application we have - per example - a mask with the RadGridView from Telerik which contains a list with all users.
  Because the application is still in development, i want to create generic methods.
  In case of the mask with the userlist, i want to call a method, which i give the control, the cellId and the cellValue.
  Coded UI recognizes the following hierarchy:
  WpfTable - WpfRow - WpfText</p>
  
  <p>Further i cannot see all user entries in the grid, which means, i have to scroll down while searching.
  So i have programmed the following method:</p>
  
  <pre><code>private void SearchRowAndCell(WpfTable table, string cellId, string cellValue)
  {
      int n = 0;
      int maxIndex = table.RowCount;
      while (n &lt; maxIndex)
      {
          var row = new WpfRow(table);
          var rowIdForSearch = "Row_" + n;
          row.SearchProperties.Add("AutomationId", rowIdForSearch);
          UITestControlCollection foundRows = row.FindMatchingControls();
  
          if (foundRows.Count &gt; 0)
          {
              row = (WpfRow)foundRows[0];
              var cell = new WpfCell(row);
              var cellIdForSearch = "Cell_" + n + "_" + cellId;
              cell.SearchProperties.Add("AutomationId", cellIdForSearch);
              UITestControlCollection foundCells = cell.FindMatchingControls();
  
              if (foundCells.Count &gt; 0)
              {
                  cell = (WpfCell)foundCells[0];
                  var text = new WpfText(cell);
                  text.SearchProperties.Add("DisplayText", cellValue);
                  UITestControlCollection foundTexts = text.FindMatchingControls();
  
                  if (foundTexts.Count &gt; 0)
                  {
                      text = (WpfText)foundTexts[0];
                      Mouse.DoubleClick(row, new Point(10, 10));
                      n = maxIndex;
                  }
                  else
                  {
                      Keyboard.SendKeys(row, "{Down}", ModifierKeys.None);
                  }
              }
          }
          n++;
      }
  }
  </code></pre>
  
  <p>Now my problem is, that i get an exception when i try to get the WpfText control because "DisplayText" is not a search property.
  When i try "Value" instaed of "DisplayText" i find nothing.</p>
  
  <p>Which search property do i need to find the WpfText with the selected value?</p>
  
  <p>Thanks in advance!</p>