WinForms UserControl not refreshing bound control.


Author
Message
Alan P Bourke
Alan P Bourke
StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)StrataFrame Beginner (7 reputation)
Group: Forum Members
Posts: 7, Visits: 12

I have a UserControl that implements MicroFour.StrataFrame.UI.Windows.Forms.UserControl.

On that UserControl I have a BO, and a textbox bound to that BO in the normal way. In the UserControl Load event I have a call to FillDataTable() .

I also have a testbed project with a form that uses the control.

The problem is when I run the testbed project the form comes up and displays the first record in the textbox, however the textbox is disabled. If I place a MaintenanceFormToolStrip either on the UserControl itself, or the test form that hosts the UserControl, it does not seem to connect to the BO as the buttons on the strip don't change the textbox.

Also, if I place my own button on the UserControl and use that to call MoveNext() on the BO, I can see the CurrentRowIndex changing, but the textbox just stays as is.

I suspect I'm interpreting what I should be doing here incorrectly - any pointers?

TIA ...


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Alan P Bourke - 15 Years Ago
Alan P Bourke - 15 Years Ago
Edhy Rijo - 15 Years Ago
                 Thanks. That looks fairly complicated :(
Alan P Bourke - 15 Years Ago
Edhy Rijo - 15 Years Ago
                         Aha! As simple as setting up the Business Object Translation!
...
Alan P Bourke - 15 Years Ago
                             Great!, glad you found it.
Edhy Rijo - 15 Years Ago
                                 Yeah, that is exactly what that is for. I will make a note of the help...
Trent L. Taylor - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search