AddChild
Adds a new DataRow to the named parent/child relationship. If the named relationship exists, the supplied DataRow will be appended to the existing DataRow collection. Otherwise, a new collection will be created with the supplied DataRow as its only element.
Syntax
void addChild(const char* childName, SmartPointer<DataRow> childDataRow)
void addChild(const UnicodeString childName, SmartPointer<DataRow> childDataRow)
Parameters
- The name of the parent/child relationship (for example, "Flood Plain Data," "References, " "Used By")
- The DataRow to be added to the relationship.
Example
SmartPointer<DataRow> childDataRow =new DataRow();
childDataRow ->set("Address", "100 Congress");
childDataRow ->set("City", "Austin");
SmartPointer<DataRow> dataRow =new DataRow();
dataRow->addChild("child1", childDataRow );