StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
ComboBox, using AutoSelectFirstItemOnValidateForNoSelection, errors...
ComboBox, using AutoSelectFirstItemOnValidateForNoSelection, errors after second invalid entry
Post Reply
Like
2
ComboBox, using AutoSelectFirstItemOnValidateForNoSelection, errors...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Govinda Berrio
Govinda Berrio
posted 10 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 94,
Visits: 481
Hello SF Devs,
Can you confirm this bug that I am experiencing?
I have an SF ComboBox bound to a business object integer property. It is setup to be an AutoComplete ComboBox (Mode: SuggestAppend) and the
AutoSelectFirstItemOnValidateForNoSelection
is set to true.
It works fine until the user types a string that does not match any option in the dropdown and tabs off the control twice in a row.
At this point it will throw the following error:
Specified cast is not valid.
at GKGLibExamples.BusinessObjects.ItemsBO.FieldDescriptor.SetValue(Object component, Object value) in C:\Users\gberrio\Documents\Visual Studio 2008\Projects\GKGLib\GKGLibExamples\BusinessObjects\ItemsBO.Designer.cs:line 1767
at System.Windows.Forms.BindToObject.SetValue(Object value)
at System.Windows.Forms.Binding.PullData(Boolean reformat, Boolean force)
The value it is trying to set the property to is DBNull.
Reproduction Steps:
- select the combobox
- enter a string that does not return an auto suggest option
- tab off the control
- select the combobox again
- enter a string that does not return an auto suggest option
- ! ERROR !
Tags
Combobox
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
ComboBox, using AutoSelectFirstItemOnValidateForNoSelection, errors...
Govinda Berrio
-
10 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search