473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How can i "see" the next record

How can i know ("see") the next record using the BindingSource
without move to the next record ?
Feb 11 '07 #1
10 3321
Giannis,

In hundred ways, one of them. BindingSource.position + 1.

http://msdn2.microsoft.com/en-us/lib....position.aspx

Cor
"giannis" <zz********@freemail.grschreef in bericht
news:eT**************@TK2MSFTNGP05.phx.gbl...
How can i know ("see") the next record using the BindingSource
without move to the next record ?


Feb 11 '07 #2
When i use the BindingSource.position + 1 the form display the next record.
I want to know the value of the next record without the form display the
next record.
Feb 11 '07 #3
Giannis,

Are you sure of that, it would be in my idea new VB code. Are you not mixing
this up with BindingSource.Position += 1

I cannot see your code but BindingSource.Position + 1 gives you in my idea
the next record.

Cor

"giannis" <zz********@freemail.grschreef in bericht
news:Oz**************@TK2MSFTNGP02.phx.gbl...
When i use the BindingSource.position + 1 the form display the next
record.
I want to know the value of the next record without the form display the
next record.

Feb 11 '07 #4
Cor Ligthert [MVP] wrote:
BindingSource.Position + 1 gives you in my idea the next record.
What code must i write to take the value of the next record ?
Can you indicate me ?
Feb 11 '07 #5
First show me a piece how you do it, I can not give you a sample from 1:1000

Cor

"giannis" <zz********@freemail.grschreef in bericht
news:el**************@TK2MSFTNGP06.phx.gbl...
Cor Ligthert [MVP] wrote:
>BindingSource.Position + 1 gives you in my idea the next record.

What code must i write to take the value of the next record ?
Can you indicate me ?


Feb 11 '07 #6
If the underlying DataSource for the BindingSource is a DataTable,
then the object retrieved from the BindingSource by indexing it will
be a DataRowView. Below is code that shows how to get at a field once
you have a DataRowView. If you underlying datasource is something
other than a DataTable, then the object retrieved will be some other
type.

Dim drv As DataRowView =
CType(bindingSource1(bindingSource1.Position + 1), DataRowView) '
Dim someIntValue As Integer = CInt(drv("Col1")) ' Col1 is name
of column in DataTable

==================
Clay Burch
Syncfusion, Inc.

Feb 11 '07 #7
We have a form (form1) with a Text box (box1) that takes values
from a BindingSource. The currency value for the box1 is :
"me.box1.text"
How can we find (with the BindingSource.Position +1) the next value
for the box1 before we move to the next record ? (BindingSource.movenext)
Sorry for my english ....
Feb 11 '07 #8
Have a look at the code from Clay.
"giannis" <zz********@freemail.grschreef in bericht
news:ur*************@TK2MSFTNGP06.phx.gbl...
We have a form (form1) with a Text box (box1) that takes values
from a BindingSource. The currency value for the box1 is :
"me.box1.text"
How can we find (with the BindingSource.Position +1) the next value
for the box1 before we move to the next record ? (BindingSource.movenext)
Sorry for my english ....

Feb 11 '07 #9
Thank you very much all two !!!
Feb 11 '07 #10
A simpler way is the :

BindingSource.Item(BindingSource.Position + 1)
Feb 11 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MLH | last post by:
I used the following SQL to create a new table in a database on a remote MySQL server by copying one already there. I know the table exists SOMEWHERE in cyberspace. I can read its data, write to...
3
by: Lou | last post by:
I created a small database and defined a simple table with about 12 columns. To load the table I imported data from a text file. I got a successful message after importing the data; no error...
3
by: sql-db2-dba | last post by:
When I did db2batch to benchmark a query, it performance details came back with this reading ... "High water mark for database heap = 4291373408" Does this mean it would have caused memory...
2
by: MLH | last post by:
I used the following SQL to create a new table in a database on a remote MySQL server by copying one already there. I know the table exists SOMEWHERE in cyberspace. I can read its data, write to...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
0
by: GS | last post by:
Documentation states that there supposed to be a "Data Sources" windows in VS 2005. See below. I can not find Data menu in VS 2005 anywhere. Anybody sees that menu? Opening the Data Sources Window...
2
by: zacks | last post by:
I use some shareware CD/DVD burning software that has a command line interface version. This allowed me to write my own custom SDK that performs various CD/DVD burning operations from my own VB.NET...
3
by: Michel Firholz | last post by:
Hi Group experts, i would like to tweak a javascript diashow with a bit SEO. No spamming, just ensuring the images are found. If the visitor is googlebot, it should not present the diashow, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.