Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Multilevel nested editable gridview

 
Thread Tools Search this Thread
Old 06-08-2009, 08:55 PM   #1
Default Multilevel nested editable gridview


Hi all,

I have built a multilevel nested editable gridview using the instructions from the following site: The Code Project. The posting is for Editable Nested GridView (All-in-One) (I would post the link but I have not met the minimum criteria to do so for this site).

Everything works great except the 3rd level edit function. Basically, I have GV1, GV2 and GV3 that are nested together. All 3 gridviews display the data properly (and are collapsible) and I can add and delete from all. The data in GV1 and GV2 can also be edited. Everytime I click the edit link on GV3 the entire Gridview closes up to the first level.

When I step through the code, I have found that the 3rd level's .DataBind is not actually working. For example, in the following code:


Protected Sub gv3_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs)
Dim gvTemp3 As GridView = DirectCast(sender, GridView)
gvUniqueID1 = gvTemp3.UniqueID
gvEditIndex1 = e.NewEditIndex
gv2.DataBind()
End Sub

When I get to the line gv2.DataBind(), instead of jumping up to the gv2_RowDataBound object, it goes right to the End Sub line. I notice that ALL of the .DataBinds for the grandchild grid are doing this. Can anyone tell me what I am doing wrong? The parent and child grids are working fine.

I would be happy to attach all of my code (as well as the table scripts for SQL Server) if necessary. I am completely at a loss. I have posted a question on Code Project and have also tried Tek-Tips with no luck. I can't figure out what I am missing.

Thanks in advance!

Brenda


byurow
byurow is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview row information disappearing after selectedIndexChanged Ry99 General Help Related Topics 0 07-13-2009 03:35 PM
VB .NET: How to extract the value of a textbox in a GridView TemplateField? k3nz0 General Help Related Topics 1 03-01-2009 06:26 AM
The GridView 'GridView1' fired event Sorting which wasn't handled. rajendrasedhain Software 0 07-08-2008 08:52 PM
gridview inside usercontrol to XLS tejesvi Software 0 04-19-2008 08:52 AM
Checkbox values problem in gridview thanigaimani.thirumalai Software 0 11-09-2007 05:12 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46