title: ASP.NET 2.0 Gridview bit checkbox
body: <p>I have a column in my database that is a bit. The column gets into my gridview from a stored proc and its setting the column in the gridview to a checkbox, and thats ok. For all the other columns I am using </p>
  
  <pre><code>    GridViewRow row = ((GridView)sender).SelectedRow;
      textbox.Text = row.Cells[x].Text.ToString();
  </code></pre>
  
  <p>I have used this to set all the text boxes in my form from the database. But i am trying to find the code to access the checkbox in the gridview. I have tried </p>
  
  <pre><code>    row.cells[bitColumn].Text.ToString
  </code></pre>
  
  <p>But that does not return a 1 or 0. </p>
  
  <p>So my question is this when you have a checkbox in a gridview how do you access it? So that I could set a checkbox in my form based on this bit. </p>