Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

JvCoach23

VB.Net newbie

MS Sql Vet

Posted

I think i got it.. Here is the code

 

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

JvCoach23

VB.Net newbie

MS Sql Vet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...