Controls not readonly when bound to a businessbindingsource


Author
Message
Rav
Rav
StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)StrataFrame Beginner (10 reputation)
Group: Forum Members
Posts: 10, Visits: 20
I'm testing out strataframe and so far it's working well.  I'm using a janus grid for navigational purposes.  Users select a record from the grid and details for that record are displayed in some textboxes.  The grid is bound to a businessbindingsource.  So far so good, here are my questions:

1.  I've discovered that if the textboxes are bound to the bo, the grid is not syncronized with the textboxes.  If I select a record on the grid, the textboxes do not reflect this change.  To fix this, I bound the textboxes to the businessbindingsource as well.  This solved the problem.  Is there an advantage to binding textboxes (and other controls) directly to the bo instead of the bindingsource?  I'd prefer to bind all my controls to the binding source since I use many 3rd party controls.

2.  Now that I've bound the textboxes to a businessbindingsource, they are not readonly.  When bound to the bo, they are readonly until the edit button is pressed.  How can I get the same behaviour when binding to the businessbindingsource.

3.  If I decide not to use edit button (and have the controls editable without users having to click the edit button), I would like the save and undo buttons to become enabled as soon as the user starts making changes (eg. user presses a key in a textbox).  First I tried using the textChanged event to set businessobject.edit.  This didn't work because the event is fired whenever the textbox is populated.What is the best way to accomplish this behaviour?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Rav - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Rav - 17 Years Ago
StrataFrame Team - 17 Years Ago
Rav - 17 Years Ago
                         Rav, You can still use the TextChanged event. Create a private...
Trent L. Taylor - 17 Years Ago
                             Thank you, I will do this. I was just checking to see if there was...
Rav - 17 Years Ago
                             [quote][b]Trent L. Taylor (04/18/2007)[/b][hr]Rav, You can still use...
Rav - 17 Years Ago
                                 [quote]I'm curious, does everyone using this framework have their...
Trent L. Taylor - 17 Years Ago
                                     [quote][b]Trent L. Taylor (04/18/2007)[/b][hr][quote]I'm curious, does...
Rav - 17 Years Ago
                                         Rav-

What I would do is go back to how you origianlly had...
Jerome Barnett - 17 Years Ago
                                             [quote][b]Jerome Barnett (04/23/2007)[/b][hr]Rav- What I would do is...
Rav - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search