In ADO.NET, how do you access child rows related to a parent row in a hierarchical dataset?

  • By iterating through the child DataTable using a foreach loop
  • By setting the ChildRows property of the DataRelation object
  • By using the GetChildRows() method of the DataRow object
  • By using the Select() method with a filter expression
The GetChildRows() method of the DataRow object is used to access child rows related to a parent row in a hierarchical dataset. It returns an array of DataRow objects representing the child rows.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *