I added a dropdown control in the child grid and now the regular header with sort not working for the column i added ddl. hmm, any idea?? (without the added ddl the sort works).
Code:
<asp:TemplateField HeaderText="Quantity " SortExpression="Quantity"> <ItemTemplate><%# Eval("Quantity")%></ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtQuantity" Text='<%# Eval("Quantity")%>' runat="server"></asp:TextBox> </EditItemTemplate> <HeaderTemplate> <asp:Label runat=server ID="lblQty" Text="Quantity" ></asp:Label> <asp:DropDownList ID="ddlQuantity" runat="server" AutoPostBack=true > <asp:ListItem Text="30" Value="30" /> <asp:ListItem Text="60" Value="60" /> <asp:ListItem Text="90" Value="90" /> </asp:DropDownList> </HeaderTemplate> <FooterTemplate> <asp:TextBox ID="txtQuantity" Text='' runat="server"></asp:TextBox> </FooterTemplate> </asp:TemplateField>
Comment