Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Populate datagrid from GetChildRows

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-05-11 : 23:34:32
Hi all,

I guess the function : Mydatarelation.getchildrows returns a list of child rows from a certain parent row in the parent table.

According to the selected parent Row, I want to put the resulting child rows in my datagrid. If I do this: I create MyRelation then:

MyDatagrid.datasouce= MySubRow.GetChildRows("MyRelation")

All I get are empty child rows in a datagrid like this:

RowError HasErrors
False
False


In my example, I only have 2 child rows corresponding to the parent Row.

What should I do please?

Thanks for help.
   

- Advertisement -