Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh combo after adding new record
Message
From
21/03/2005 08:16:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Refresh combo after adding new record
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00997790
Message ID:
00997790
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform