Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relationships
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00986335
Message ID:
00987650
Vues:
41
Thanks Godfrey and Kevin for the replies. At first I thought I should flatten things out, but then went with (what I hope) is more of a MM way. I have controls bound to different sources, and after reading "Synchronizing Controls with Different Data Sources" in the help, am using this code, which seems to work fine.
protected override void HookPostNavigate()
{
	CadCall boCadCall = (CadCall)this.GetBizObj(typeof(CadCall));
	CadCallDataSet.CadCallRow currentRow = boCadCall.CurrentCadCallRow;
	CmnAgency boCmnAgency = (CmnAgency)this.GetBizObj(typeof(CmnAgency));
	CmnAgencyDataSet dsAgency = (CmnAgencyDataSet)boCmnAgency.GetCurrentDataSet();
	DataView dv = dsAgency.GetDataView("dvAgencyByPK");
	int position = dv.Find(currentRow.CmnAgencyFK);
	this.txtIncidentNumber.DataBindings[0].BindingManagerBase.Position = position;
}
My first attempt at using relationships didn't seem to work, but if that's a better way, I'll look into it some more.

Thanks,
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform