Bindingnavigator opdatere ikke textbox
HejJeg har nedenstående kode. Bindingnavigatoren skifter mellem posterne, men textbox opdateres ikke med ny værdi
OracleConnection conn = new OracleConnection(c); // C#
conn.Open();
cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = storedProcedureName;
cmd.Parameters.Add(new OracleParameter("ORDERDATA", Oracle.DataAccess.Client.OracleDbType.RefCursor)).Direction = ParameterDirection.Output;
OracleDataReader dataReader = cmd.ExecuteReader();
OracleDataAdapter dataa = new OracleDataAdapter(cmd);
int i = dataa.Fill(this.ds);
dataReader.Close();
this.dataTable1BindingSource.DataSource = this.ds;
this.dataTable1BindingSource.DataMember = this.ds.Tables[0].ToString();
this.textBox1.DataBindings.Add( new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_NO",true));
this.textBox1.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;
this.textBox2.DataBindings.Add(new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_ID", true));
this.textBox2.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;
this.textBox3.DataBindings.Add(new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_SUPPLIER_ID_SET", true));
this.textBox3.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;
this.textBox4.DataBindings.Add(new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_CREATEDDATE", true));
this.textBox4.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;
this.textBox5.DataBindings.Add(new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_HOST", true));
this.textBox5.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;
this.textBox6.DataBindings.Add(new Binding("TEXT", this.dataTable1BindingSource.DataSource, "Table.ORDER_ORDER_MODIFIEDDATE", true));
this.textBox6.DataBindings[0].ControlUpdateMode = ControlUpdateMode.OnPropertyChanged;