Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I refresh a comboboxes values after add new
Message
 
À
22/03/2005 16:19:11
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00997441
Message ID:
00998316
Vues:
43
Joe,

>I really could use some sequence diagrams for the save process.
>It looks like the order is MM Save code, HookPostSave and then SaveButton_Click.
>
>Anyway, I have not looked in the CompanyListDataset the combo's bound source (as it is not showing in the combo).
>I did look in both the data source (SQL table in which both datasets are filled from) and the CompanyDataset.
>These do show the additions/deletions (the dataset shows the addition at the end as it has not resorted).
>
>The CompanyListDataset (from my CompanyList Bus Obj) needs refreshing and needs to maintain the same sequencing as the form's CompanyDataset (from the Company Bus Obj).
>I tried clearing and refilling both datasets after addition/deletion (and it works) but this seems cumbersome.
>I tried merging the CompanyListDataset with the CompanyDataset which worked but then the indexes of the CompanyDataset did not match the BindingContext.
>
>Brute force has prevailed but it is not the most elegant approach.
>Really would like to understand how to do this multi Bus Obj same Datasource synch using the framework.

Gotcha...that gives me a little clearer idea of what you're doing. It does make sense that the CompanyList DataSet doesn't contain the newly added record until you go out and retrieve the information from the back end tables. From a sorting perspective, have you tried using DataViews instead of DataTables?

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