Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relationships
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00986335
Message ID:
00987650
Views:
42
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
Previous
Reply
Map
View

Click here to load this message in the networking platform