3
Reply

Problem in Gridview ItemTemplete

yogita dhingra

yogita dhingra

Sep 26 2009 2:42 AM
2.2k
I have gridview in that one template field with texbox is there. my problem is i want to give textbox of text at codebehind is it possible.
for eg.
<asp:TemplateField Visible="false" HeaderText="Address">
                          <ItemTemplate>
                         <asp:TextBox ID="txtAddress" runat="server"  ReadOnly="true" TextMode="MultiLine" Text='<%# Eval( "Address") %>'></asp:TextBox>
                          </ItemTemplate>
                          </asp:TemplateField--%>

here i dont want to give any text this i have to give through code behind it is possible.

Answers (3)