0
我想获得我的第一列(称为'Proposta')在相应的行中,当用户点击一个div(div在我的列' Conversa')。我怎样才能获得我的GridView中的单元格的值
我该怎么做通过jquery?
我的ASPX
<asp:TemplateField HeaderText="Conversa">
<ItemTemplate>
<div style="width:30px;">
<div id="lblConversa">Conversa</div>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Ação">
<ItemTemplate>
<%= acao %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
我的HTML渲染
<table class="StyleGrid" cellspacing="0" border="0" id="grdDetalheProposta" style="border-width:0px;width:100%;border-collapse:collapse;">
<tr class="thGrid" style="color:#000000;background-color:#E2DCD2;height:20px;">
<th scope="col">Proposta</th><th scope="col">Data</th><th scope="col">Valor</th><th scope="col">Comentário</th><th scope="col">Inserido Por</th><th scope="col">Credenciada Proponente</th><th scope="col">Status</th><th scope="col">Conversa</th><th scope="col">Ação</th>
</tr><tr class="EstiloDalinhaGrid" align="center">
<td>208194</td><td style="width:1px;">29/12/2011 14:32:13</td><td>11,11</td><td>Teste 1</td><td>Flávio Oliveira Santana</td><td>Central de Operações</td><td>Andamento</td><td>
<div style="width:30px;">
<div id="lblConversa">Conversa</div>
</div>
</td><td>
</td>
</tr>
</table>
确切欺骗http://stackoverflow.com/questions/376081/如何获取表格单元格值使用jquery – Devjosh 2012-02-10 14:14:37
我不明白这个链接上的解决方案 – 2012-02-10 14:27:35