Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My Picker is Picky
Message
 
À
05/05/2005 09:19:14
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:
01011259
Message ID:
01012347
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Joe,

>I have a mmPicker on my WinForm configured as follows:
>VisitorSelectionPicker
>DataCommand: Select * From Visitors Order By VisitorLastName, VisitorFirstName, CompanyName
>GridColumns:
> 1. VisitorLastNameColumn (BindingSourceMember = VisitorLastName) 2. VisitorFirstNameColumn (BindingSourceMember = VisitorFirstName)
> 3. VisitorCompanyNameColumn (BindingSourceMember = CompanyName)
>GridDefaultSortColumn: VisitorLastNameColumn
>PickListDisplayMember: VisitorLastName
>PicListSearchField: VisitorLastName
>PickListValueMember: VisitorId

It looks like the problem is in your DataCommand setting--if you drop the Order By clause it should work. The picker automatically adds a WHERE clause to the end of your DataCommand (when it's not a sproc) to narrow the result set based on what the user has typed in.

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