ComboBox Question - Displaying data NOT contained in the options


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I think this is a really simple question.... but I don't know enough about .NET to be able to figure out my own answer.  I am converting some data from FoxPro to .Net and SQL Server.  Well the old FoxPro system had a ZipCode table, just so happens that the table doesn't have all the zip + 4 zipcodes.  In some of the client information data (different table, like a patient table or something) they have the zip + 4 codes entered... If I have a combobox based on the zipcode table (and it dosen't have the + 4 stuff) how do I get the system to display the information for the user if it is NOT contained in the data?  Right now I just get a blank combobox.

I understand that the combo doesn't show anything if it doesn't find a matching value in it's data (doesn't the native .Net combo allow this), but this is something that I could do in FoxPro (I know..... I hate bringing that up but that is the way my mind is working.... I need to start thinking .NET).

Any and ALL help will be appreciated...  even if it is "it doesn't work that way, get a better conversion routine".

Scott

Replies
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I think I found out why this is confuesing me so much,  I had my combo setup exactly like you just suggested, it still didn't work so I decided to do some console.writeline's to check the value of the dropdownstyle property.  It showed dropdownlist NOT dropdonw like it is set to in the designer.  I changed the value in code... the combo work fine... until you naviage to the next record.  Check the dropdownstyle, back to dropdownlist.

I guess I am NOT going crazy, I just have to find out where in SF the style is being changed.  Any suggestion as to where to start looking? Or maybe I have the toolbox not setup properly after the update?  Don't know.

Scott

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
We do make a change to the style when the editing state changes and the IgnoreManageReadOnlyState is set to False (the default).  The reason we change the style is to make a combo and a drop down list look the same when disabled...go figure why Microsoft would make the disabled states look different.  Try setting the IgnoreManageUIReadonly state to True on the combo and set it to DropDown and see if it works.  If so, just handle the EditingStateChanged event of the business object and manully set the enabled state of the combo based on the editing state...this is easier than trying to control the other.
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Thanks for the info.  I just noticed that, when it is dropdown it has the disabled gray color.  Well that just makes it look a little funky.

Good new....  I really wasn't going crazy!!!Hehe

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Yeah...sorry for the trouble.  You could set the style back when you disable it I guess, to make it look more in line with the rest. 
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Scott - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Scott - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Scott - 19 Years Ago
                         Is the field you are binding to a String value? If so, how are you...
Trent L. Taylor - 19 Years Ago
                             I think I found out why this is confuesing me so much, I had my combo...
Scott - 19 Years Ago
                                 We do make a change to the style when the editing state changes and...
Trent L. Taylor - 19 Years Ago
                                     Thanks for the info. I just noticed that, when it is dropdown it has...
Scott - 19 Years Ago
                                         Yeah...sorry for the trouble. You could set the style back when you...
Trent L. Taylor - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search