Binding Manager/Currency Manager Problem?

J

Jim

Hi,

Trying to implement databinding. I've a dataset with a table, a windows
form with typical controls: combobox, datetimepicker, textbox . . .
I use what I think is a normal method to establish the bindings:
textbox1.databindings.add("text", dataset, table.column)

The records displays in the UI(if it exists). I can create an initial record
and successfully save to the database.

The problem occurs when I attempt to add a new record to the existing
dataset. The BindingManager object accepts a move to the new position (which
equals the record count in my dataset/or the record position in the
dataset). But, having moved the binding manager's position doesn't result in
a blanking of the UI controls, such as I would expect with a newly added
record, and any changes I make in the UI controls, aren't reflected in the
newly added record when I go to save it.

I don't think I've added a new binding manager when creating a new record in
the dataset.
Does anyone have any pointers on what I'm doing wrong? My understanding of
this is that the bindingmanager should be changing the values of the UI
controls to reflect the underlying data record.

Is the a working, non-ntier, windows forms example that implements basic
CRUD operations, including the use of databinding? I've already reviewed the
help files repeatedly. What am I missing?

Thanks,
Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top