Hi i found this article to build nested lists....
But the problem is now i don't know how to enable the inner list for editing, i have given the inner list a editingitemtemp late, but clicking on the edit button does nothing but a normal postback.
Also I want to know how to implement this tenique to group data from more than one table.
But the problem is now i don't know how to enable the inner list for editing, i have given the inner list a editingitemtemp late, but clicking on the edit button does nothing but a normal postback.
Code:
<EditItemTemplate>
<tr id="row" runat="server">
<td><%# Eval("orderid") %></td>
<td><%# Eval("orderdate", "{0:MM/dd/yyyy}")%></td>
<td><%# Eval("requireddate", "{0:MM/dd/yyyy}")%></td>
<td><asp:TextBox runat="server" ID="txtF" Text='<%# Eval("freight", "{0:c}") %>'></asp:TextBox></td>
<td><%# Eval("requireddate", "{0:MM/dd/yyyy}")%></td>
</tr>
</EditItemTemplate>
protected void lv_ItemEditing(object sender, ListViewEditEventArgs e)
{
ListView lv = sender as ListView;
lv.EditIndex = e.NewEditIndex;
}