how to navigate in a dataset changing the text on a databound texbox

  • Thread starter Thread starter mjpiedade
  • Start date Start date
M

mjpiedade

I just started with C#.
How do I navigate on a dataset by changing the value of a textbox or other
simple bound controls? Imagine that I have the customer name on a textbox
and have a datagrid with the orders that will display the orders of the
customer that the user enters on the textbox.
With combobox or lisbox the binding is automatically defined, but with
controls with simple bound I just can not figure it out a easy way to do it.

Thank you in advance for any help.
Best regards,
Miguel Piedade
 
Are you using a BindingContext? If so, just set its .Position property +1
or -1 or whatever increment you want it to move to.
 
William

And what if I want to move to a position in a datatable that I do not know
its index. Example:
I have an textbox with the name of a customer, and when the user types a
name on it, I want to move to the first order for that user in my dataset?
How can I manage these situations?

Thank you in advance,

Miguel Piedade
 
Back
Top