请问怎么选部分记录??
我建立了一个dataset,里面哟有两张表,表的关系是主次,我想实现:主的全部,次的只选六个,应该如何做? 部分代码如下:
foreach ( DataRow parent in ds.Tables["fclass"].Rows)
{
Response.Write (parent["classname"]+"<br>");
foreach ( DataRow child in parent.GetChildRows("myrelation") )
{
Response.Write (" "+child["title"]+"<br>");
}
}