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.
Can I know how the problem has sorted out.
For anyone else having this problem, I've found that this works when I set EnableDataViewState to True.