-
March 22nd, 2006, 05:11 PM
#1
Position in DataBindings
I have DataTable dtAccount populated with records.
daAccount.Fill(dtAccount)
I also have
bdsAccount = New BindingSource
bdsAccount.DataSource = dtAccount
I can navigate through records using this approach:
bdsAccount .Position += 1
intCurrentAccountID = dtAccount.Rows(bdsAccount.Position)(0)
This procedure call populates all controls:
PopulateControls(intCurrentAccountID)
My question:
If let's say I assigned a value to intCurrentAccountID from search procedure, how do I point to the related position in bdsAccount ?
Having a value in intCurrentAccountID I can populate controls, but bdsAccount .Position contains a previous value, so if I need to move next or previous I will go to the wrong record.
Thank you
Vlad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|