System.Windows.Forms.DataGridView.DataBindingComplete Event

Occurs after a data-binding operation has finished.

Syntax

public event DataGridViewBindingCompleteEventHandler DataBindingComplete

Remarks

This event is raised when the contents of the data source change or when the value of the DataGridView.DataSource, DataGridView.DataMember, or Control.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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0