There is no nesting in my app - simply trying to invalidate all of the nodes in the tree (using selfRelated example in VirtualMode) so that the Styled Nodes backcolor get refreshed after each re-sorting of the grid.
This code is at the end of the PrepareGrid(ByVal grid As FlyGrid) method in the selfRelatedGrid example:
Dim iRow As Integer
For iRow = 0 To selfRelatedGrid.Rows.Items.Count - 1
Dim node As NineRays.Windows.Forms.Data.Node
node = selfRelatedGrid.Rows.Items(iRow)
'selfRelatedGrid.InvalidateNode(port,node)
Next
selfRelatedDt.DefaultView.Sort = \"Parent, IntOver\"
AddHandler grid.VirtualMode_GetCount, AddressOf Me.grid_VirtualMode_GetCount
AddHandler grid.VirtualMode_GetNodeCellValue, AddressOf Me.grid_VirtualMode_GetNodeCellValue
AddHandler grid.VirtualMode_SetNodeCellValue, AddressOf Me.grid_VirtualMode_SetNodeCellValue
AddHandler grid.VirtualMode_HasChildren, AddressOf Me.grid_VirtualMode_HasChildren
AddHandler grid.VirtualMode_InitNewNode, AddressOf Me.grid_VirtualMode_InitNewNode
grid.Rows.VirtualMode = True
Catch ex As Exception
ExceptionManager.Publish(ex.InnerException)
End Try
End Sub
I'm not sure how to access the \"port\" of the existing grid, and whether the invalidation code is correctly placed so that the nodes will be re-initialized as Styled Nodes with the correct backcolor.
Thanks in advance for your guidance!
Eric