Clay,
Thanks for your response.
I can see your point.
In VC++ MFC, one would use the DDX, the UpdateData() and so forth
function in order to pass data from variables to controls or vice
verse. The methodology in .NET doesn't seem to be as explicit... at
least it isn't to me.
I'm not seeing explicit ways to (as per the previous example):
pass data from the control back to sVendors once data in aVendors has
changed or the form is closing, AND
refresh the control(s) once the base data has changed.
Neither of the two books I have cite an example.
Also neither show where currencymanager is used explicitly. Both speak
of CurrencyManager in comments but show the Position property of
BingingContext being used. As far as I can tell from the .NET
documentation Position is being called from a BindingContext. I see no
example where CurrencyManager is being called and I dont see an
instance of it as a member of form classes or controlcontainers or
bindingcontexts. I must be missing something.
Thanks Clay...
Joe
On Thu, 8 Jan 2004 04:55:27 -0500, "ClayB [Syncfusion]" wrote:
Try adding a button to your form with this button handler.
private void button1_Click(object sender, System.EventArgs e)
{
BindingManagerBase bmb =
this.BindingContext[this.aVendors];
bmb.Position = (bmb.Position + 1) % bmb.Count;
}
Then imagine your vendor class has 50 public properties, and you want to
show 10 of them in labels or textboxes on a form so you can edit them. You
could then use the BindingManagerBase to move the 'current' vendor back and
forth. This effectively lets you page through all the vendor' properties
with just Next and Previous buttons.
==========================
Clay Burch, .NET MVP
Visit www.syncfusion.com for the coolest tools