System.Windows.Forms.BindingSource.EndEdit()

Here are the examples of the csharp api class System.Windows.Forms.BindingSource.EndEdit() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

7 Examples 7

1. Example

Project: gitextensions
Source File: FormPush.cs
private void BranchGrid_CurrentCellDirtyStateChanged(object sender, EventArgs e)
        {
            // Push grid checkbox changes immediately into the underlying data table.
            if (BranchGrid.CurrentCell is DataGridViewCheckBoxCell)
            {
                BranchGrid.EndEdit();
                ((BindingSource)BranchGrid.DataSource).EndEdit();
            }
        }

2. Example

Project: csla
Source File: BindingSourceNode.cs
private void BindingSource_CurrentChanged(object sender, EventArgs e)
    {
      if (_children.Count > 0)
        foreach (BindingSourceNode child in _children)
          child.Source.EndEdit();
    }

3. Example

Project: comparator
Source File: SqlView.cs
void EndEdit()
    {
      bs.EndEdit();
      txtSQL.DataBindings[0].WriteValue();
      numCommandTimeout.DataBindings[0].WriteValue();
    }

4. Example

Project: csla
Source File: BindingSourceNode.cs
internal void EndEdit()
    {
      if (Source == null)
        return;

      if (_children.Count > 0)
        foreach (BindingSourceNode child in _children)
          child.EndEdit();

      _source.EndEdit();
    }

5. Example

Project: comparator
Source File: FormXml.cs
private void FormXslt_FormClosing(object sender, FormClosingEventArgs e)
    {
      if (Validate(false))
      {
        bs.EndEdit();
        bsFields.EndEdit();
        tbResult.Clear();
        tbResult.ClearUndo(); // for prevent memory leak
        dgResult.DataSource = null;
        XmlController.Dt = null;
        XmlController.Fields = null;
        GC.Collect();
        XmlController.FreeForm();
      }
      else
        e.Cancel = true;
    }

6. Example

Project: comparator
Source File: FormXml.cs
private void bConvert_Click(object sender, EventArgs e)
    {
      Cursor = Cursors.WaitCursor;
   /n ..... /n //View Source file for more details /n }

7. Example

Project: comparator
Source File: FormXml.cs
private void cmsFields_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
    {
      if (!/n ..... /n //View Source file for more details /n }