The following returns an array of datarows where the row in the parent table (table at index 0 in a dataset called ds) has no children in the table referenced in the data relation called Relation_Name.
Code:
DataRow[] dr = ds.Tables[0].Select("COUNT(Child(Relation_Name).ColumnName) = 0");
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.