Help not changing position on datasource. -
07-18-2008
, 07:59 AM
I have a four row table that I have built a select index off. I have an
on change even that is supposed to change the position of the binding
source that all fields on the screen are tied to:
position = DB.tblMatchBindingSource.Find("ID", select.Id);
DB.tblMatchBindingSource.Position = position;
DebugLabel.Text = String.Format("Select {0} - {1} - {2}", select.Id,
position, DB.tblMatchBindingSource.Position);
Problem is that the select.id is found and returns position 1 but the
binding source stays at 0. Occasionally it will allow it to switch.
Debug is 28 - 1 - 0
Yet it works for:
30 - 3 - 3
I have no idea why, any suggestions or something I should tie to the
datasource somewhere.
I have pulled all database out to a separate component. The screen has
no database in it at all. It is now done like this:
MatchVenue.DataSource = DB.tblVenueBindingSource;
MatchVenue.DataBindings.Add(new Binding("SelectedValue",
CricketDB.tblMatchBindingSource, "Venue"));
Ken |