Dataset Current row

  • Thread starter Thread starter Joel
  • Start date Start date
J

Joel

Hi!
Its probably a stupid question but how can I retreive the
column of the current row?
Example: This retreive the value in the ID column for the
first row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.

Thanks Joel :)
 
Joel said:
Hi!
Its probably a stupid question but how can I retreive the
column of the current row?
Example: This retreive the value in the ID column for the
first row. dstForeignKey.Tables(0).Rows(0)("ID")
But I want the current position in the dataset.

There is no current position. You can access any row you want by specifying
the row index.
 
Maybe this will help
Me.BindingContext(objdsPrime, "Client").RemoveAt
(Me.BindingContext(objdsPrime, "Client").Position)
 
Thanks I will try this,
I'm using the TrueDBgrid of component one and I don't show all the field in
my grid but I need to update the field that I'm not showing so that's why I
want the current position in the Dataset.

Thanks Joel :)
 
Hi Joel,

For that is the currencyManager, but I don't know how that goes with your
component one datagrid.

But you can have a look for that.

Cor
 
Back
Top