SuspendBinding Method

BindingManagerBase.SuspendBinding Method

When overridden in a derived class, suspends data binding.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public abstract void SuspendBinding ()
public abstract void SuspendBinding ()
public abstract function SuspendBinding ()
Not applicable.

SuspendBinding and ResumeBinding are two methods that allow the temporary suspension and resumption of data binding. You would typically suspend data binding if the user must be allowed to edit data fields before validation occurs. For example, the user might need to change a field to be in accordance with a second field; otherwise, validating the first field would cause the second field to be in error.

private void button4_Click(object sender, EventArgs e)
      BindingManagerBase myBindingManager2=BindingContext [myDataSet, "Customers"];
   catch(Exception ex)

private void button4_Click(Object sender, EventArgs e)
    try {
        BindingManagerBase myBindingManager2 = 
            get_BindingContext().get_Item(myDataSet, "Customers");
    catch (System.Exception ex) {
} //button4_Click

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions

© 2015 Microsoft