Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i get gridview cell value on double click of cell in inputbox
please give me hint
i am taking all values in gridview in this way
XML
<asp:TemplateField  HeaderText="ID">
<ItemTemplate>
<%#Eval("id")%>
</ItemTemplate>
Posted
Comments
cuteband 11-May-11 3:55am    
not clear enough.Please explain furhter.
Mayur Gujrathiii 11-May-11 3:59am    
i mean to say how can i get that cell value simply

1 solution

put one control like <asp:Label id="l1" runat="server" text='<%#Eval("id")%>'></asp:Label>

in code behind

label l=(Lable)Gridview1.rows[e.rowindex].findcontrol("l1");
you can get now using l.text ....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900