Hello,
I am trying to access the last node in a node collection using the following code:
//[C#]
// obtain a reference the last child of the current parent node
FlyTreeNode objNode = ParentNode.ChildNodes.Item(ParentNode.ChildNodes.Count-1);
However, when I attempt to build, the VS.Net validation routinestates that the
'NineRays.WebControls.FlyTreeNodeCollection' does not contain a definition for 'Item'
Not only is this in direct contradiction to the documentation but the same (similar) code works in VB.Net!
' [VB]
' Works!
NodeText2 = LCase(Trim(ParentNode.ChildNodes.Item(I).Text))
I did check VS.NET Help and Google but found nothing to solve the problem. Any ideas? Anyone?