BindingSource adn BindingNavigator

jvcoach23

Centurion
Joined
May 22, 2003
Messages
192
Location
Saybrook, IL
a vb 2005 question..

I've got a datasource that is bound to an object. I'm getting my results to a detail view fine.. and can use the bingingnavigator to click through each row. I'd like to be able to click on the + sign in the binding navigator and go to a new, blank "row" that I can later save. I've got a click event for the add sign, and did a


Me.CampersBindingSource.EndEdit()

this is creating the blank row at the end but I can't figure out how to get the UI to go to this last record. I've tried the movelast and position, but I'm not doing something right. would seem that I should be working with the bindingnavigator.. but i'm not sure.. Can someone help please. do i need to use a currency manager to move on the index... if so, how..

thanks
shannon
 
I think i got it.. Here is the code

Visual Basic:
 Me.CampersBindingSource.AddNew()
        Debug.WriteLine(Me.CampersBindingSource.CurrencyManager.Position.ToString)

        Debug.WriteLine(Me.CampersBindingSource.Count)
        Dim count1 As Integer = Me.CampersBindingSource.Count + 1

        Me.CampersBindingSource.CurrencyManager.Position = count1
 
Back
Top