title: VFP - Repositioning in a grid
body: <p>A grid grdmain has a recordsource cDetail.  cDetail is a cursor with just 2 columns :</p>
  
  <p>CREATE CURSOR cDetail (tProd C(16), tValue N(4))</p>
  
  <p>A button on the form can reposition to a different row in the grid:</p>
  
  <pre><code>cmdPosition.Click()
       SELECT cDetail
       GOTO  &lt;record&gt;
       Thisform grdmain.setfocus()
  </code></pre>
  
  <p>. . . This works fine.</p>
  
  <p>I would now like to be able to reposition on a row in the grid by entering a suitable value into Column2.text1 of the grid.</p>
  
  <p>Have included similar code (not including Setfocus()) in the Column2.text1.valid() method, but the selected cell remains on the same row  -  I must be doing something wrong!</p>
  
  <p>Thanks.  Andrew</p>