Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mmpicker
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01061118
Message ID:
01061735
Vues:
12
Stuart,

>In the jump start windows forms examples you have the Customer orders form
>You have the mmPicker which uses CustomerID to select from orders.
>In the pckCustomers_ItemSelected method there is the line
>this.oOrder.GetOrdersByCustomerID(this.pckCustomer.Text);
>. I want to be able to type in the CompanyName then retrieve the orders by CustomerID, but “this.pckCustomer.Text” will contain the CompanyName,so how do I now get the CustomerID to run my query?

Gotcha (the clouds have parted, the sun is shining <g>)...

I recommend creating a subclass of mmPicker and overridng the PerformSearch() method. You can then replace the parameter values that are sent to the PickListBusinessObject to suit your needs.

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