Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh combo after adding new record
Message
De
21/03/2005 10:11:34
 
 
À
21/03/2005 08:16:57
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00997790
Message ID:
00997822
Vues:
9
Joe,

I don't know how MM handles this, but perhaps you need to unbind the Combo and then rebind it?

~~Bonnie


>I have a Combobox bound to a CompanyList business object. The rest of the form and it's fields are bound to a Company business object. Both of these business objects get data from a Company database table.
>
>After I add a new record and press save I'd like to "refresh" the records within the CompanyList business object in which the combobox is bound.
>
>I have tried adding the following to the forms SaveButton_Click (a mmUltraButtonSave button) with no luck:
>
>        ' Update the Company selection combo to include the newly added value
>        ' TODO - Rebind of selection combo not including newly added company
>        Me.CompanyListDataset = _
>            CType(Me.oCompanyList.GetCompanyList(), CompanyListDataset)
>        Me.BindControl(Me.FormRecordSelectionCompanyCombo)
>
>
>How can I get the combobox to "refresh" after adding a new record so that it includes the new value?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform