title: How to show item in dropdownlist as being selected when we have corresponding datatextfield from gridview selected row
body: <p><strong>Code</strong>:</p>
  
  <pre><code>DataSet ds = _dalEquipmentwiseCheckList.getEquipmentName();
  
  ddEquipmentName.DataSource = ds.Tables[0].DefaultView;
  
  ddEquipmentName.DataTextField = ds.Tables[0].Columns[1].ToString();
  ddEquipmentName.DataValueField = ds.Tables[0].Columns[0].ToString();
  ddEquipmentName.DataBind();
  </code></pre>
  
  <p><strong>What I want is: when selecting a row in the GridView, the corresponding equipment name
  should get selected in the dropdown list:</strong></p>
  
  <p>var selectRow = MyGridView.SelectedRow;</p>
  
  <pre><code>ddEquipmentName.SelectedValue = selectRow.Cells[2].Text;
  ****//this is giving me error****
  </code></pre>