title: FormView to populate from selection on GridView
body: <p>I have a DropDownList that populates a GridView according to the selected value. I then have a FormView that I want to populate with data depending on what field was selected out of the DataGrid. </p>
  
  <p>My GridView has DataKeyNames="ID", and I then use the following to update the selected field:</p>
  
  <p>
  <code>&lt;ItemTemplate&gt;
                                  &lt;a href="#" onclick="addEdit(&lt;%# Eval("ID") %&gt;)"&gt;Update&lt;/a&gt;
                              &lt;/ItemTemplate&gt;</code>
  </p>
  
  <p>My FormView's ObjectDataSource uses the following:</p>
  
  <p>
  <code>&lt;asp:ControlParameter ControlID="grvMain" Name="pID" PropertyName="SelectedValue"
                  Type="Int32" /&gt;</code>
  </p>
  
  <p>I still can't seem to get the FormView populated with the correct data, or any data at all for that matter, when user clicks on Update in the grid. </p>
  
  <p>Any ideas?</p>