Jump to content

updating datasource

- - - - -

  • Please log in to reply
No replies to this topic

#1
trixobird

trixobird

    Newbie

  • Members
  • Pip
  • 1 posts
hi folks
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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users