Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,465 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,564 people online right now. Registration is fast and FREE... Join Now!




DataBound TextBox Controls - DataSource Update

 
Reply to this topicStart new topic

DataBound TextBox Controls - DataSource Update

Jordan CB
1 Jul, 2008 - 11:17 AM
Post #1

New D.I.C Head
*

Joined: 16 Apr, 2008
Posts: 15

Howdy,

I'm developing a little database management system (Access) that will allow the user to browse through the records, edit any values, and add new records.

I have been able to bind the controls relatively easy, setting their datasourceupdatemode to OnValidation.

Should I be able to call dataadapter.fill(mydataset) on the dataset that i'm using to bind my text box controls, and will that not update any changes or new records to the database?

I'm doing something wrong because I use the bindingNavigator for adding records and navigation through them. When i click my update button that simply calls the data adapter to update the dataset, I get nothing. My database isn't updated, and when I fill my dataset again, there are no changes nor any new records added.

Any ideas what I'm doing wrong? If you need to see code, let me know. Just thought it was a simple step i'm missing.

I am wanting the user to be able to edit the values in the textbox and then that be updated into the database.

Thanks!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:48PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month