I have some code that will keep the grid open on a rebind, but it is only on the first level of a hierachical grid. I have a grid that had 3 layers to it and on an insert, the grid gets rebound, how can I keep the 2nd and 3rd level open. Then code I use for the first level is:
Any help would be appreciated!!!
Private
Sub SelectInsertedRecord(ByVal ID As String)
Dim item As GridDataItem
For Each item In Me.dgBuilderProject.Items
If item.Item("ProjectId").Text = ID Then
item.Selected =
True
item.Expanded =
True
Exit For
End If
Next
End Sub 'SelectInsertedRecord
Any help would be appreciated!!!