Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding Controls After DataSource Change
Message
 
À
23/07/2006 22:01:54
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01139026
Message ID:
01139564
Vues:
18
Rex,

>I've told this story before, but here goes. I have a business object that populates a GridView. I subclassed the business object and added a DataRow property that I populate with the selected DataRow from the GridView. I bind the data in the DataRow to mmDropDownList objects. My problem is that when I select a new row, I can't get the new values to populate into the mmDropDowns. I use the following method:
>
>
>	protected void gdvInstruments_SelectedIndexChanged(object sender, EventArgs e)
>	{
>		int musicianInstrumentID = (int)this.gdvInstruments.SelectedDataKey.Value;
>		this.oMusicianInstrumentXRef.GetMusicianInstrumentFromDataTableByMusicianInstrumentID(musicianInstrumentID);
>		this.BindControl(this.ddlInstrument);
>		this.BindControl(this.ddlGenre);
>		this.BindControl(this.ddlExperience);
>	}
>
It's hard to completely understand the scenario from here, but how are you binding the data in the DataRow to the mmDropDownList objects?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform