G
Gerry Schatte
If I know the primary key value of a record and want to move my form
to that specific record, what is the best way?
I know how to "move next", "move previous" or use the position to move
to a specific record with BindingContext, but the position is based on
datarow position, not primary key id.
I was hoping there'd be something like:
Me.BindingContext(dsPeople, "People").Position.Move = [pk value], but
can't find it.
I suppose I could iterate through the datatable to find a pk match and
then move to the position, but that seems archaic to me. I can use
the find method to locate the datarow of choice in code, but I'd like
to be able to move my form to that record.
TIA,
Gerry
to that specific record, what is the best way?
I know how to "move next", "move previous" or use the position to move
to a specific record with BindingContext, but the position is based on
datarow position, not primary key id.
I was hoping there'd be something like:
Me.BindingContext(dsPeople, "People").Position.Move = [pk value], but
can't find it.
I suppose I could iterate through the datatable to find a pk match and
then move to the position, but that seems archaic to me. I can use
the find method to locate the datarow of choice in code, but I'd like
to be able to move my form to that record.
TIA,
Gerry