Click here to Skip to main content
15,919,500 members
Home / Discussions / C#
   

C#

 
AnswerRe: validation Pin
Khawar Abbas123-Feb-06 18:19
Khawar Abbas123-Feb-06 18:19 
GeneralRe: validation Pin
leelaraj23-Feb-06 21:09
leelaraj23-Feb-06 21:09 
AnswerRe: validation Pin
goyal manish23-Feb-06 23:43
goyal manish23-Feb-06 23:43 
QuestionThreadAbortException and SQL? Pin
Kuira23-Feb-06 16:54
Kuira23-Feb-06 16:54 
AnswerRe: ThreadAbortException and SQL? Pin
S. Senthil Kumar23-Feb-06 17:35
S. Senthil Kumar23-Feb-06 17:35 
AnswerRe: ThreadAbortException and SQL? Pin
Le centriste23-Feb-06 18:30
Le centriste23-Feb-06 18:30 
GeneralRe: ThreadAbortException and SQL? Pin
Kuira9-Mar-06 15:59
Kuira9-Mar-06 15:59 
QuestionBindingsource & Tableadapters Pin
monrobot1323-Feb-06 16:35
monrobot1323-Feb-06 16:35 
Here's my situation: I have a database created with SQL Express. I have a VS solution that has a Windows Forms project. In the project I've added a datasource by clicking "Data->Add new datasource" I selected database as where to get the data from, then I selected my database, then I selected the tables that I wanted included in the DataSet. The dataset gets created all well and good. I add a dataset from the toolbox onto my form and set it's datasource property to my solution dataset. Then I add a binding source and set it's datasource to the list instance of the dataset (the one dragged from the toolbox) and it's datamember to the correct table. Then I bind all the controls on my form to the bindingsource. Then all I should need to do (according to everything I've read) is type:

this.Validate ();

this.epsBindingSource.EndEdit ();

this.epsTableAdapter.Update (this.oxfordDataSet.eps);

But this doesn't work, no data is ever added to the database. The Update method return 0 as the number of rows updated. I'm trying to add new data to the database, but it never works. I thought maybe it was something in the project or something I may have done wrong. So I created a completely new project added the datasource exactly how it should be done, and simply dragged the table I'm trying to update from the "Data Sources" window (in "detail" mode) onto the form and let the designer do everything for me. I typed my information into the form pressed the save button (on the bindingnavigator toolbar the designer created), but there was still nothing added to the database.

Any help on what I may be doing wrong would be very very appreciated. I've been dealing with this for a week and can't wrap my brain around why nothing is getting added to the database. I'm new to working with datasets, but I don't think I'm doing anything wrong.


- Aaron
QuestionLock a document Pin
Lilupa23-Feb-06 16:20
Lilupa23-Feb-06 16:20 
QuestionDataGird Can U help Me Pin
AnhTin23-Feb-06 16:02
AnhTin23-Feb-06 16:02 
AnswerRe: DataGird Can U help Me Pin
Praveen Nayak23-Feb-06 17:14
Praveen Nayak23-Feb-06 17:14 
GeneralRe: DataGird Can U help Me Pin
AnhTin23-Feb-06 18:57
AnhTin23-Feb-06 18:57 
GeneralRe: DataGird Can U help Me Pin
Praveen Nayak23-Feb-06 19:18
Praveen Nayak23-Feb-06 19:18 
GeneralRe: DataGird Can U help Me Pin
AnhTin23-Feb-06 20:23
AnhTin23-Feb-06 20:23 
GeneralRe: DataGird Can U help Me Pin
Maqsood Ahmed23-Feb-06 22:34
Maqsood Ahmed23-Feb-06 22:34 
Questionretrieving the installion path during installion wizard Pin
2hdass23-Feb-06 13:26
2hdass23-Feb-06 13:26 
AnswerRe: retrieving the installion path during installion wizard Pin
veeru_syd27-Feb-06 12:44
veeru_syd27-Feb-06 12:44 
QuestionHandle Word prompts during Automation Pin
Guinness4Strength23-Feb-06 12:30
Guinness4Strength23-Feb-06 12:30 
Questiontyped dataset Pin
fmardani23-Feb-06 11:02
fmardani23-Feb-06 11:02 
QuestionListBox Invalidate issue Pin
Clarke7623-Feb-06 9:24
Clarke7623-Feb-06 9:24 
QuestionC# key/mouse detection Pin
weizur123-Feb-06 9:11
weizur123-Feb-06 9:11 
AnswerRe: C# key/mouse detection Pin
Robin Panther23-Feb-06 12:21
Robin Panther23-Feb-06 12:21 
GeneralRe: C# key/mouse detection Pin
weizur123-Feb-06 12:44
weizur123-Feb-06 12:44 
GeneralRe: C# key/mouse detection Pin
Allah On Acid23-Feb-06 15:28
Allah On Acid23-Feb-06 15:28 
GeneralRe: C# key/mouse detection Pin
weizur123-Feb-06 20:49
weizur123-Feb-06 20:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.