jvcoach23 Posted December 12, 2005 Posted December 12, 2005 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 Quote JvCoach23 VB.Net newbie MS Sql Vet
jvcoach23 Posted December 14, 2005 Author Posted December 14, 2005 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 Quote JvCoach23 VB.Net newbie MS Sql Vet
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.