OK, I am not very good at these template expressions. I thought that this was going to be real easy, but I am struggling.
Could anyone explain what is wrong with this syntax giving that I am binging to a simple collection in the code behind with two columns called Web_Link and HTML_Desc?
<ig:WebDataGrid ID="wgLinks" runat="server" Width="80px" AutoGenerateColumns="False" DataKeyFields="Web_Link" StyleSetName="WestonBlue" AltItemCssClass="WestonAltBlueItem" ShowHeader="False"> <Columns> <ig:TemplateDataField Key="Web_Link" Width="100%"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="<% #DataBinder.Eval(Web_Link) %>" Text="<%# #DataBinder.Eval(HTML_Desc) %>"></asp:HyperLink> </ItemTemplate> </ig:TemplateDataField> </Columns> </ig:WebDataGrid>
Hello Alan,
thank you for sharing this solution with the community.
thank you for sharing this solution with our community.
I was able to figure it out...this syntax worked for me
<ig:WebDataGrid ID="wgLinks" runat="server" Width="80px" AutoGenerateColumns="False" DataKeyFields="Web_Link" StyleSetName="WestonBlue" AltItemCssClass="WestonAltBlueItem" ShowHeader="False"> <Columns> <ig:TemplateDataField Key="Web_Link" Width="100%"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Web_Link") %>' Text='<%# Eval("HTML_Desc") %>' > </asp:HyperLink> </ItemTemplate> </ig:TemplateDataField> </Columns> </ig:WebDataGrid>