DataRowState没有发生改变
DataRowState怎么没有改变?
DataColumn[] keys = new DataColumn[1];
keys[0] = this.ds_custlist.Tables[0].Columns[0];
this.ds_custlist.Tables[0].PrimaryKey = keys; //主键
DataRow findRow = this.ds_custlist.Tables[0].Rows.Find(this.txtcode.Text);
MessageBox.Show(findRow.RowState.ToString(), " ");
下面是我绑定的代码
this.BindingContext[this.ds_custlist, "cust_custinfo "].Position = this.dv_list.CurrentRow.Index;
this.txtcode.DataBindings.Add(new Binding( "Text ", this.ds_custlist, "cust_custinfo.custcode "));
this.txtname.DataBindings.Add(new Binding( "Text ", this.ds_custlist, "cust_custinfo.custname "));
当我修改了txtname里面的值之后MessageBox显示的还是Unchange,怎么回事?
------解决方案--------------------this.BindingContext[******].EndCurrentEdit();