I have form1 that has customer information textboxes that are databound to CustomerItem. If have a button on form1 for a test that works fine to retrieve the data that is displayed properly in the textoxes:
I have a search form that passes back a selected intKey to the same form1 to an almost identical routine. The CustomerItem object accurately shows the fields in debug mode (when inserting a breakpoint), but the same textboxes do not display the data when the routine is finished:
public void ReadData(int intKey)
this.Cursor = Cursors.WaitCursor;
CustomerItem = da.Read(intKey);
//I can see the data in CustomerItem here when hovering the cursor.
customerItemBindingSource.DataSource = CustomerItem;
this.Cursor = Cursors.Default;
Any idea what I am doing wrong?
Thanks in advance,
Last edited by jmcilhinney; 04-24-2016 at 2:01 AM.
Reason: Fixed code formatting.