![]() |
|
|
|||||||
![]() |
ASP Net - Multilevel nested editable gridview |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |