B
BFX
Hi All,
I have datagrid with binding on dataset
this.grdMachineType.DataMember = "MachineTypes";
this.grdMachineType.DataSource = this.dsMachineTypes;
After append new row in datagrid i call this
private void tbMachineTypes_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
this.grdMachineType[this.grdMachineType.CurrentRowIndex,1] = false;
this.dsMachineTypes.GetChanges();
this.grdMachineType.BindingContext[this.dsMachineTypes.MachineTypes].EndCurr
entEdit();
this.daMachineT.Update(this.dsMachineTypes.MachineTypes);
this.dsMachineTypes.AcceptChanges();
}
but databze haven't any changes .
If I after adding new row select another row and call save
tbMachineTypes_ButtonClick row is added.
thank's in advance for help
BFX
I have datagrid with binding on dataset
this.grdMachineType.DataMember = "MachineTypes";
this.grdMachineType.DataSource = this.dsMachineTypes;
After append new row in datagrid i call this
private void tbMachineTypes_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
this.grdMachineType[this.grdMachineType.CurrentRowIndex,1] = false;
this.dsMachineTypes.GetChanges();
this.grdMachineType.BindingContext[this.dsMachineTypes.MachineTypes].EndCurr
entEdit();
this.daMachineT.Update(this.dsMachineTypes.MachineTypes);
this.dsMachineTypes.AcceptChanges();
}
but databze haven't any changes .
If I after adding new row select another row and call save
tbMachineTypes_ButtonClick row is added.
thank's in advance for help
BFX