Databinding problems - 11-30-2004 , 08:07 AM
I have a wee problem, help appriatiated.
I have a simple form, a listbox, a couple of textboxes and thats it.
The function of the form goes like this, the user selects a row in the
listbox, and thus shows the selected data in the textboxes (using
databinding). All the controls are databinded to the same dataset. My
problem is this, how do I handle when the user wants to add a new row?
When I tried to use BindingContext.AddNew() and then create a new
row, adding it to the dataset, everything goes beserk!? It copies
the data from the active row to the new, whitout updating the listbox,
which is still empty.
Could someone please explain how do set up a simple form with
databinding, using a listbox to tell which data to show/edit?
|Thread Tools||Search this Thread|