Export (0) Print
Expand All
Expand Minimize

DataGridView.DataBindingComplete Event

Occurs after a data-binding operation has finished.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public:
event DataGridViewBindingCompleteEventHandler^ DataBindingComplete {
	void add (DataGridViewBindingCompleteEventHandler^ value);
	void remove (DataGridViewBindingCompleteEventHandler^ value);
}
/** @event */
public void add_DataBindingComplete (DataGridViewBindingCompleteEventHandler value)

/** @event */
public void remove_DataBindingComplete (DataGridViewBindingCompleteEventHandler value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

This event is raised when the contents of the data source change or when the value of the DataSource, DataMember, or BindingContext property changes.

Handling this event is useful, for example, to programmatically resize rows and columns based on content updates. For more information, see Sizing Options in the Windows Forms DataGridView Control.

For more information about handling events, see Consuming Events.

The following code example illustrates the use of this event. This example is part of a larger example available in the DataGridViewRowContextMenuStripNeededEventArgs class overview.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show:
© 2014 Microsoft