Hi Christopher,
As you use complex data binding, do the following:
CurrencyManager cm = (CurrencyManager)this.BindingContext[theDataTable];
DataView dv = (DataView)cm.List;
// Search the row in the DataView by its key.
// We need the index of the row in the DataView, not the source DataTable.
cm.Position = foundRowIndex;
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Christopher Weaver" <we*****@verizon.net> wrote in message
news:OQ**************@TK2MSFTNGP09.phx.gbl...
How do I retrieve the position value after successfully finding the row
that I'm looking for? I need to set
BindingManagerBase.Position
so that all of the controls on the form are synchronized. Is there
another way of moving to a particular record within a dataset given the
value of the key?