My combobox does not display the information in the BO


Author
Message
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
This one is really driving me crazy ( a short drive for me ).

I have a combo box that displays all the US states - it displays the full state name and the value member is the postal abbreviation. I can see the data in the table in SQl Server and in th BO when I step through the code. But the state does not display in the combo unless I edit the record in the UI and save it. What is up with this?

Thanks

Replies
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Trent L. Taylor (11/24/2008)
Is there any way that you could slap this on a sample form and let me take a look?

I have been trying to tell you how I solved this but I keep getting this error when I try to post the response:

The board administrator has requested that you must provide some message content within your post. You cannot post only HTML, Images, EmotIcons or IFCode.

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
You are probably cutting the code from one place and the pasting it.  It you paste it into notepad or something to strip the formatting first you will more than likely not see this message.
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Trent L. Taylor (11/24/2008)
You are probably cutting the code from one place and the pasting it.  It you paste it into notepad or something to strip the formatting first you will more than likely not see this message.

OK - here goes Smile When all else fails, try a bigger hammer - this code in the boParticipants_Navigated eventhandler solved the problem, but I have no idea why it was necessary in this one case:

cbostate_nme.SelectedValue = boParticipants.state_nme.Trim();
boParticipants.CurrentDataTable.AcceptChanges();

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Marcia G Akins - 17 Years Ago
Ivan George Borges - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Marcia G Akins - 17 Years Ago
                     Well, it could be a couple of things. You may want to change...
Trent L. Taylor - 17 Years Ago
                         [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]Well, it could be a...
Marcia G Akins - 17 Years Ago
                             Is there any way that you could slap this on a sample form and let me...
Trent L. Taylor - 17 Years Ago
                                 [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]Is there any way that...
Marcia G Akins - 17 Years Ago
                                     You are probably cutting the code from one place and the pasting it....
Trent L. Taylor - 17 Years Ago
                                         [quote][b]Trent L. Taylor (11/24/2008)[/b][hr]You are probably cutting...
Marcia G Akins - 17 Years Ago
Marcia G Akins - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search