.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 2nd, 2003, 12:17 PM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
Refreshing or Updating a dataset ?

Hi guys and girls.

I would like to know if a dataset is updated when you tell it to do it, or it's doing like when he want.

Cause, I have a form where the parent dataset is. And in the functions, there is a dataset that is refered to this one.

then in the function you do an update etc...

but at one point, I am trying to access it and I can't. and when I check it out, it's look like the last entry I added isn't in it. But at the same time the program is running, in the database the new row have been added and I can see it.

Also if I close the program and restart it, the modification of the dataset have been corrected. Soo that's mean I would need to force the update or kinda do a refresh of the parent database ?

is that what I need to do ? and if yes, then how does I do it ?
__________________

Reply With Quote
  #2  
Old October 3rd, 2003, 07:48 AM
Pain Pain is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Sheffield, UK
Posts: 94 Pain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to Pain
As far as im aware the record set will only contain information when you tell it to, and similarly will only update if you tell it to.

Whilst vb.net is smart, its not psychic mate.

Reply With Quote
  #3  
Old October 6th, 2003, 11:07 AM
Watever Watever is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 486 Watever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 20 sec
Reputation Power: 6
ok but here is my problem

I have a DataSet that is kinda principal. In all the function the guy before created new dataSet that were in reference to the principal one.

So one of the child supposely when one of the child in a function is updated, then that's mean the principale should be update too. And when you create a new one that is refered to this one it should have the new rows inside.

But when I try to see access the last row that are added, it's telling me the program is trying to access something that doesn't exist. Like if it haven't been update. But it's have been cause if I do a query in SQL command, I can see that it is inside my DB. also if I close the program et reopen it, the new rows are inside.

It's kinda buzzy. Even my boss is gettin crazy I believe cause all the program is big and all in ping-pong for a little mini-program.

Reply With Quote
  #4  
Old January 4th, 2004, 02:01 PM
ferraroj ferraroj is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 ferraroj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile HELP

I am having a similar problem...I was just wondering if you found a solution. Does the dataset need to somehow itself be updated on the parent form? I would really appreciate any insight.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Refreshing or Updating a dataset ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT