I'm using FlowChart.NET 4.3.1 and .NET 2.0
I'm drawing tables with several rows. I allow users to connect the tables with arrows.
I also allow users to edit the content of my tables (using a configuration window). To update the tables, it is convenient to remove all rows and add the new rows in their place.
This works fine until I save the chart to XML and then reload it. I can still edit the rows, and even update the table. But any arrows connected to the table now seemed to be disconnected and floating around.
I noticed I was removing the rows in the wrong way (direct access to the collections). So I'm now removing them with "DeleteRow()". But now the arrow dissapears. I found out the arrow was now actually connected to a row of that table instead of the table itself.
So I tried to solve it by looking if any of the rows to be removed had incomming or outgoing arrows (which they had). I then used fc.CreateArrow() to create a new arrow with the same destination and origin as the arrow connected to the row, except ofcourse the table instead of the row.
However, I must be forgetting something because the arrow isn't showing up. I can't Add it to the collection of the incomming and outgoing arrows of the table because that creates weird behaviour (arrow dissapearing). The Outgoing and Incomming arrow collection of the I used as destination or origin remain empty after the CreateArrow() call.
Me.mFlowChart.CreateArrow(iTable, iTable.Rows(iRowIndex).OutgoingArrows(i).Destination)
iTable is the table containing the row...
Why is an arrow previously connected to a table suddenly connected to a row after loading it from XML? Is this my fault or a problem?
What else am I forgetting to create an arrow? Do I need to do anything to make the created arrow visible? Why doesn't it show up in the tables Outgoing or Incomming Arrows Collections?
Thanks!