title: Hide DataList row based on value from web service
body: <p>I am retrieving a set of value from a web service and populating a dataList with those values-</p>
  
  <pre><code>ActiveDataList.DataSource = ws.TermsReturnActive(sql);
  ActiveDataList.DataBind();
  </code></pre>
  
  <p>How can I hide a particular column of the dataList depending on the value, 
  e.g. </p>
  
  <pre><code>if(value == 1)
  { 
   //Hide Column 
  }
  </code></pre>
  
  <p>This action however would have to hide the same row of another dataList in parallel to it.
  I can modify a cell on this second dataList using by retrieving the value from the first as so -</p>
  
  <pre><code>TextBox tb1 = (TextBox)sender;
          DataListItem item1 = (DataListItem)tb1.NamingContainer;
  
          TextBox txt1 = (TextBox)tData.Items[item1.ItemIndex].FindControl("tTextBox");
  
          string term = txt1.Text;
  </code></pre>
  
  <p>So if I can retrieve a value from a separate dataList row, I was thinking I would also be able to adjust its visability.</p>
  
  <p>How can I achieve this as the web service call is done in the page load so I believe it would have to be done when the dataList item is bound? </p>