Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Picker is Picky
Message
 
To
05/05/2005 09:19:14
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01011259
Message ID:
01012347
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform