dgadmin.LoadingRowDetails += new EventHandler<DataGridRowDetailsEventArgs>(dgadmin_LoadingRowDetails);
void dgadmin_LoadingRowDetails(object sender, DataGridRowDetailsEventArgs e)
{
if (e.Row.DataContext != null)
{
ProjectInformationModel ProjectInformation = e.Row.DataContext as ProjectInformationModel;
ID = ProjectInformation.ID;
sc.FindProjectPersonListCompleted += new EventHandler<FindProjectPersonListCompletedEventArgs>(sc_FindProjectPersonListCompleted);
sc.FindProjectPersonListAsync(" and ProjectID='" + ID + "'");
sc.FindCostPlanListCompleted += new EventHandler<FindCostPlanListCompletedEventArgs>(sc_FindCostPlanListCompleted);
sc.FindCostPlanListAsync(" and ProjectID='" + ID + "'");
}
}
在这些datagrid后面加一个容器吧。应该是它的下面只能出现一个子控件,当然孙控件是它的子控件的事情了。