Dynamic Gridview Problems, Please Help

P

pbd22

Hi.

I have dynamically created a ButtonField and then, in the
GV_RowDataBound function, I have the
below line:

LinkButton _singleClickButton =
(LinkButton)e.Row.Cells[1].Controls[0];

I want it to discover the ButtonField, but when I view source after,
it always puts the
onclick event in the TR tags. How do I drill down to the TD tags and
then, how do I
drill down to the Anchor tags within the TD tags?

Here is the output currently:


<tr>
<th scope="col">Folder</th><th scope="col">Title</th><th
scope="col">Type</th><th scope="col">&nbsp;</th>
</tr>

<tr onclick="javascript:__doPostBack('vGridView$ctl02$ctl00','')"
style="background-color:#EFF3FB;">
<td>/Conferences/Keystone Conference/keystone1_1600</td><td
align="center"><a href="javascript:__doPostBack('vGridView','$0')"
style="color:#333333;">key_1600</a></td><td>Stored</td><td
class="hideGID">4d43535365617263684</td>

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top