Link to home
Start Free TrialLog in
Avatar of colonel720
colonel720Flag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of yohney
yohney

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of colonel720

ASKER

Didn't get to test it, but I won't be taking this route after all. I am giving you the points for responding with something that  by the looks of it, works.