When i use the BindingSource.p osition + 1 the form display the next record.
I want to know the value of the next record without the form display the
next record.
Are you sure of that, it would be in my idea new VB code. Are you not mixing
this up with BindingSource.P osition += 1
I cannot see your code but BindingSource.P osition + 1 gives you in my idea
the next record.
Cor
"giannis" <zzzinobios@fre email.grschreef in bericht
news:Oz7dhucTHH A.2256@TK2MSFTN GP02.phx.gbl...
When i use the BindingSource.p osition + 1 the form display the next
record.
I want to know the value of the next record without the form display the
next record.
>
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(bindingSo urce1(bindingSo urce1.Position + 1), DataRowView) '
Dim someIntValue As Integer = CInt(drv("Col1" )) ' Col1 is name
of column in DataTable
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.te xt"
How can we find (with the BindingSource.P osition +1) the next value
for the box1 before we move to the next record ? (BindingSource. movenext)
Sorry for my english ....
"giannis" <zzzinobios@fre email.grschreef in bericht
news:ur$ZRBfTHH A.496@TK2MSFTNG P06.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.te xt"
How can we find (with the BindingSource.P osition +1) the next value
for the box1 before we move to the next record ? (BindingSource. movenext)
Sorry for my english ....
>
Comment