473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Editing a Grouping Grid with LinqDataSource and ListView Controls

33
Hi i found this article to build nested lists....

http://mattberseth.com/blog/2008/01/...grid_with.html

But the problem is now i don't know how to enable the inner list for editing, i have given the inner list a editingitemtemplate, but clicking on the edit button does nothing but a normal postback.

Expand|Select|Wrap|Line Numbers
  1. <EditItemTemplate>
  2.        <tr id="row" runat="server">
  3.        <td><%# Eval("orderid") %></td>
  4.            <td><%# Eval("orderdate", "{0:MM/dd/yyyy}")%></td>
  5.            <td><%# Eval("requireddate", "{0:MM/dd/yyyy}")%></td>
  6.            <td><asp:TextBox runat="server" ID="txtF" Text='<%# Eval("freight", "{0:c}") %>'></asp:TextBox></td>
  7.            <td><%# Eval("requireddate", "{0:MM/dd/yyyy}")%></td>
  8.        </tr>
  9. </EditItemTemplate>
  10.  
  11. protected void lv_ItemEditing(object sender, ListViewEditEventArgs e)
  12. {
  13.   ListView lv = sender as ListView;
  14.   lv.EditIndex = e.NewEditIndex;
  15. }
Also I want to know how to implement this tenique to group data from more than one table.
Attached Files
File Type: zip linqdatasource_plus_nested_listviews.zip (20.2 KB, 196 views)
Jun 14 '10 #1
0 1224

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Li Pang | last post by:
Very basic question, how to hilight an item (row) on datagrid or listview controls? Thanks Li
6
by: Ivan Weiss | last post by:
Hi all, I am writing an app that displays data such as a list of customers, vendors, products etc... in a listview. The listview however is pretty ugly and boring and I am pretty bad at making...
1
by: Lasse Eskildsen | last post by:
Hi, Is it possible to group items in a listview, as seen in ex. windows xp explorer? Thanks for your time, -- Lasse
6
by: Josef Brunner | last post by:
Hi, I have a problem using two ListView controls on one and the same form: Problem: The second ListView is never focused. No matter where I "click" non of the items within the ListView is...
2
by: stacy | last post by:
I am attempting to port an application from a Windows app to an ASP.NET Web App. I notice that the TreeView and ListView controls are not part of the tool box on the WebForm. Can someone tell me...
0
by: Charles Law | last post by:
Can anyone suggest how to keep two ListView controls synchronised? It is a common scenario: two ListView controls, side-by-side, containing similar data. I want to scroll one control and have the...
0
by: crealas | last post by:
I'm currently building a GUI in C# using Microsoft Visual Studio 2005. I have put together an Explorer style control as explained in the walkthrough in the Visual Studio 2005 help. I got it...
1
by: jmDesktop | last post by:
Consider: Private Sub ListView_ItemDrag(ByVal sender As Object, ByVal e As _ System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag, _ ListView2.ItemDrag in VB. Can this be...
0
by: Jarppi | last post by:
Hi All, Not sure how to go about this one. I've got a windows form with five ListView controls, each listing the files in a seperate folder. What I want to achieve is this: When I scroll any...
2
by: =?Utf-8?B?UGhpbGlw?= | last post by:
I am attempting to insert a simple record with LinqDataSource from a ListView, however I always get a message saying "....LinqDataSource 'dataSource' has no values to insert. Check that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.