colonel720
asked on
dynamically set databind expression?
I have a GridView with a TemplateField
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblDisplayItem" runat="server" Text='<%# Eval("Description") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtEditItem" runat="server" Text='<%# Eval("Description") %>' />
</EditItemTemplate>
</asp:TemplateField>
Is it possible to set the '<%# Eval("Description") %>' to another field at run time?
Any help appreciated, Thanks
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblDisplayItem" runat="server" Text='<%# Eval("Description") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtEditItem" runat="server" Text='<%# Eval("Description") %>' />
</EditItemTemplate>
</asp:TemplateField>
Is it possible to set the '<%# Eval("Description") %>' to another field at run time?
Any help appreciated, Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER