Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh combo after adding new record
Message
De
21/03/2005 08:16:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Refresh combo after adding new record
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:
00997790
Vues:
46
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?
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform