Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
LinkButton in a Template Column
posted

I'm trying to add a column with a linkbutton that will take the user to a detail screen for the selected row.  My column is as below:

<ig:TemplateDataField Key="Name" Width="120">
   <ItemTemplate>
      <div align="left">
         <asp:LinkButton ID="lnkDetail" CommandName="Detail" CommandArgument='<%# DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "ID") %>'
            runat="server"><%# DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "Name")%></asp:LinkButton>
      </div>
   </ItemTemplate>
   <Header Text="Name" />
</ig:TemplateDataField>

When I click on the link it posts back to the server but it never fires the grid's ItemCommand event.  What am I missing?

Thanks. 

Parents
No Data
Reply Children