HighTechTalks DotNet Forums  

Databinding problems

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Databinding problems in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
SparvHok
 
Posts: n/a

Default Databinding problems - 11-30-2004 , 08:07 AM






Hi there,

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?

Rgds



--

+================================================= =====================+
Quote:
SparrowHawk The Magician |
|
|
|
|
+================================================= =====================+
e-mail: sparvhok[NOSPAM]hotmail.com |
+================================================= =====================+
To send me an email, replace the [NOSPAM] tag with @ sign.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.