GridView trouble in .Net
<p>i think this maybe an easy one...<br>
I have a Gridview, bound to a dataSource with this query:<br>
select userid, name, phone from users<br>
I need to change the content of the Name cell to a link, like so:<br>
<code>&lt;a href="http://www.domain.com/page.aspx?userid=12345"&gt;User's Name&lt;/a&gt;</code><br>
so OnRowDataBound i'm doing this:  </p>

<pre><code>e.Row.Cells[1].Text = "&lt;a href=\"http://www.domain.com/page.aspx?userid=\" + e.Row.Cell[0].Text + "\"&gt;" + e.Row.Cells[1].Text + "&lt;/a&gt;"; 
</code></pre>

<p>It all works fine this way. My problem is that i don't want to display the UserId column in the Gridview, but when i attribute it (asp attribute or server-side) <code>Visible="false"</code> to the BoundField UserId, i can't capture it's value to build the Name Cell.</p>

<p>Thanx for your help</p>
