Click here to Skip to main content
15,917,320 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Connection Pooling problem Pin
Wendelius7-Jan-09 0:36
mentorWendelius7-Jan-09 0:36 
AnswerRe: Connection Pooling problem Pin
Roger Wright6-Jan-09 2:12
professionalRoger Wright6-Jan-09 2:12 
AnswerRe: Connection Pooling problem Pin
Pete O'Hanlon6-Jan-09 10:50
mvePete O'Hanlon6-Jan-09 10:50 
GeneralRe: Connection Pooling problem Pin
ruanr6-Jan-09 20:17
ruanr6-Jan-09 20:17 
GeneralRe: Connection Pooling problem Pin
Pete O'Hanlon6-Jan-09 22:11
mvePete O'Hanlon6-Jan-09 22:11 
QuestionDatabindings fail to update db Pin
dragon525-Jan-09 20:27
dragon525-Jan-09 20:27 
AnswerRe: Databindings fail to update db Pin
Wendelius6-Jan-09 1:34
mentorWendelius6-Jan-09 1:34 
GeneralRe: Databindings fail to update db Pin
dragon526-Jan-09 16:28
dragon526-Jan-09 16:28 
Mika, thanks for your reply.
I have done a debug as you suggested and found that the row item in question has changed (when I changed the tbxSchoolName) but the RowState remains "Unchanged". Do you know why?
The test I am doing is simple enough, I display the form which loads the controls. I select a record from the Combobox which populates the Textboxes. I make a change to the Textbox. I click the 'Save' button to do the Update().
I have noticed that my changes in the Textbox 'tbxDaySchoolName' is not reflected in the Combobox 'cbxDaySchools'.
I have done a search and AcceptChanges() is not used on this form any more.
Obviously my 'select' command works but here is the code for the 'update' command:

// The Update command handles updates to existing rows
cmdUpdate = myConnection.CreateCommand();
cmdUpdate.CommandText = "UPDATE DaySchoolsTbl SET SchoolName=?SchoolName, SuburbID=?SuburbID, SchoolType=?SchoolType WHERE SchoolID=?SchoolID";
myParameter = cmdUpdate.Parameters.Add("?SchoolID", MySqlDbType.Int16, 40, "SchoolID");
myParameter = cmdUpdate.Parameters.Add("?SchoolName", MySqlDbType.String, 40, "SchoolName");
myParameter = cmdUpdate.Parameters.Add("?SchoolType", MySqlDbType.Byte, 1, "SchoolType");
myParameter = cmdUpdate.Parameters.Add("?SuburbID", MySqlDbType.Int16, 40, "SuburbID");
myParameter.SourceVersion = DataRowVersion.Original;
myDataAdapter.UpdateCommand = cmdUpdate;

Any idea what the problem is??

thanks
GeneralRe: Databindings fail to update db Pin
Wendelius6-Jan-09 18:14
mentorWendelius6-Jan-09 18:14 
GeneralRe: Databindings fail to update db Pin
dragon528-Jan-09 15:07
dragon528-Jan-09 15:07 
GeneralRe: Databindings fail to update db Pin
Wendelius9-Jan-09 0:00
mentorWendelius9-Jan-09 0:00 
QuestionRequirment to create a web site in which user can create his mail account Pin
rahuladya5-Jan-09 20:11
rahuladya5-Jan-09 20:11 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
Lev Danielyan5-Jan-09 20:40
Lev Danielyan5-Jan-09 20:40 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
EliottA6-Jan-09 2:06
EliottA6-Jan-09 2:06 
QuestionHow Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 8:34
Curtis Schlak.5-Jan-09 8:34 
AnswerRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Pete O'Hanlon5-Jan-09 9:14
mvePete O'Hanlon5-Jan-09 9:14 
GeneralRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 13:55
Curtis Schlak.5-Jan-09 13:55 
QuestionRun .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dattatraya K5-Jan-09 2:52
Dattatraya K5-Jan-09 2:52 
AnswerRe: Run .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dave Kreskowiak5-Jan-09 3:46
mveDave Kreskowiak5-Jan-09 3:46 
Question[Message Deleted] Pin
hemakrishnan4-Jan-09 23:08
hemakrishnan4-Jan-09 23:08 
AnswerRe: Integrating HtmlHelp (.chm) file with wpf xbap application Pin
Dave Kreskowiak5-Jan-09 5:33
mveDave Kreskowiak5-Jan-09 5:33 
QuestionClick once updation issue.... Pin
nileshbahirshet4-Jan-09 3:38
nileshbahirshet4-Jan-09 3:38 
AnswerRe: Click once updation issue.... Pin
Not Active4-Jan-09 10:51
mentorNot Active4-Jan-09 10:51 
GeneralRe: Click once updation issue.... Pin
nileshbahirshet5-Jan-09 17:27
nileshbahirshet5-Jan-09 17:27 
GeneralRe: Click once updation issue.... Pin
Not Active6-Jan-09 0:39
mentorNot Active6-Jan-09 0:39 

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.