I have a datasource that binds to a table, and a listcontrol that binds to the datasource. My problem is that although I have updated the table with a new row, I can't update the datasource to include the new row.
Any help, or just pointing to the right direction will be very helpfull, thank you
//adding row to the database thesisDataSet.SignUpRow row = InitDb.DtSet.SignUp.NewSignUpRow(); row.UserName = txtUserName.Text; InitDb.DtSet.SignUp.Rows.Add(row); InitDb.tblAdpSignUp.Update(InitDb.DtSet.SignUp); InitDb.DtSet.SignUp.AcceptChanges(); InitDb.tblAdpSignUp.Fill(InitDb.DtSet.SignUp); UserId = InitDb.DtSet.SignUp[InitDb.DtSet.SignUp.Count - 1].Id; //updating datasource signUpBindingSource.Add(???????);
Edited by Roger, 28 December 2010 - 11:05 PM.


Sign In
Create Account

Back to top









