Originally Posted 4 October 2016, 3:52 pm ESTI would like get the parent node row index for a non-Node row. My method is iterate the Nodes and check the row index. In the code below, I assume there is only one level node. I wonder if there any more direct and efficient way. Thanks.
int GetParentNode(int rowIndex)
int nodeIndex = -1;
foreach (Node node in fgMarket.Nodes)
if (node.Row.Index < rowIndex)
nodeIndex = node.Row.Index;