Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Database > Database General Discussion

Database General Discussion General discussion on database related topics

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2009, 8:14 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Jul 2009
Age: 32
Posts: 3
Reputation: 0
daxriders is on a distinguished programming path ahead
Question 1 Addressbook, 2 Forms

I'm new to to VB and ADO.NET and i would like to create an addressbook with:

- one form with a datagridview containing some infos(name, company, phone number and email)
- a second form with the full details of the selected contact

Questions:
- should i use a typed dataset or programm everything myself?
- how do i display the full contact details in the 2nd form after clicking on the first form?

Thanx in advance for your help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2009, 5:23 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Jul 2009
Age: 32
Posts: 3
Reputation: 0
daxriders is on a distinguished programming path ahead
Default

i dont expect any sample code... just any idea how it's supposed to work:

- pass the data from form1 to form2 as a datarow?
- form1 and form2 should have the same bindingsource?
- ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2009, 1:27 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Jul 2009
Age: 32
Posts: 3
Reputation: 0
daxriders is on a distinguished programming path ahead
Default

the solution i found so far, is to have the same bindingsource for the datagridview(1st form) and the textboxes(2nd form), like this:

Code:
Me.txtName.DataBindings.Add(New System.Windows.Forms.Binding("Text", frmPersonenListe.TblPersonenBindingSource, "Name", True))
My problem now is that the changes made in the textboxes are applied directly to the datagridview.
How can i let the user confirm saving the changes before closing the form?
And if not confirmed, to leave the data unchanged?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 1:02 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.