I put a BrowseDialog in a child form.
It shows up fine, the search fields are there, the records get listed, but once I choose one and go back to the form, it doesn't position the BO to the chosen record.
Am I missing something? (besides the beautiful windy and sunny day out there)
yup...I would agree that it would be more fun outside today
It is already Trent.
It is working fine in all the other forms. It's just in this ChildForm that it is not. In the parent of this form, it works fine.
If you look at the contents of the BO after the browse, does the record actually exist in the BO...first lets make sure that the data made it back.
That's funny!.....I noticed
Yes, it is a translated business object.
It is a one-to-many situation. Have the parent, a button there calling the child form. This parent may have lots of kids, so I put a Browse dialog in the child ToolStrip. Then I set the BOToPopulate to the BO in the Child, and its Type. When I go to the Browse and do a Search, the grid gets populated alright. I click the chosen one and go back to the child form, that's when it doesn't show the record I chose, but it stays in the one it was already.
Too confusing? Would you like me to try and explain in Portuguese? You can ask Steve to help in the translation...
LOL...yeah, I'll get him in here to translate for me. When you return from the browse, does the BO contain the correct data? It so, try calling the BO.Refresh()...this will force your bound controls to refresh to the current record in the BO.
Yes, it does, but not positioned in the correct row.
Extremely sorry for the stupid question, but where could I call the Refresh?
MyBO.Refresh()