Park on a data bound record
I've got a screen of mostly text boxes that are data bound, and I'd like to park on a certain record. In this form, when the user clicks the "Previous" button, I move to the previous record like this
Code:
tbORI.DataBindings[0].BindingManagerBase.Position -= 1;
If I want to park on the record where tbORI has the string, say, "123", what's the best way to do this. I'm thinking about iterating through all the records, and if tbORI.Text = "123" park on that one, but wondering if that's the best way.
Thanks,
Mike