Results 1 to 4 of 4

Thread: [2005] small problem - binding and new row

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Croatia, Šibenik
    Posts
    72

    Red face [2005] small problem - binding and new row

    I have this little problem: I have drag table from Data Source to form and delete navigator (I will use this form ONLY for adding new records) so I have binded text boxes. Now problem is how to 'tell' on form_load to prepare text boxes (like when I press plus [+] sign in navigator for new record) to enter new record. Example: I have manualy add one record to db in server explorer and that record is shown in text boxes and I can edit this and save. What command triger entering new row?

    Thanks

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Croatia, Šibenik
    Posts
    72

    Re: [2005] small problem - binding and new row

    nobody know how to get this one working?!?
    My work i on hold and I'm so close to the end...

    Just wanna know the code that is behind 'plus' sign in BindingNavigator...
    Last edited by mikey_rs; Aug 7th, 2007 at 04:57 PM.
    >>> If I'm not back in five minutes... just wait longer <<<
    Ace Ventura

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] small problem - binding and new row

    The BindingNavigator is simply a UI for a BindingSource. When you press the + button on a BindingNavigator all that happens is it invokes the AddNew method of the BindingSource. If you've deleted the BindingNavigator then you simply have to call the AddNew method of the BindingSource yourself. I suggest that you immediately consult the MSDN library and read about the BindingSource class and its members.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Croatia, Šibenik
    Posts
    72

    Re: [2005] small problem - binding and new row

    That I needed to hear. I get it most of all but for beginer this is so much information (in VB6 it was easyest but more limited i think) and need to code it few times to get everything in place in my head. Maybe I'm little 'slow' but can helped.
    >>> If I'm not back in five minutes... just wait longer <<<
    Ace Ventura

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width