Results 1 to 15 of 15

Thread: [2005] Use of Binding navigator

Hybrid View

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

    Re: [2005] Use of Binding navigator

    Handle the TabControl's SelectedIndexChanged event and assign the appropriate BindingSource to the BindingNavigator's property. How you identify the appropriate BindingSource is up to you, but the easiest way would be to assign it to the Tag property of the TabPage when you create it. Then the code would be:
    VB Code:
    1. myBindingNavigator.BindingSource = DirectCast(myTabControl.SelectedTab.Tag, BindingSource)
    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    8

    Re: [2005] Use of Binding navigator

    I have tried to assign the binding navigator to the tag control but it does not appear under the tag property for the tabControl only the different binding sources appear. Is there any other way in code that i could do this? Thanks

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