System.Windows.Forms.DataGridView.DataBindingComplete Event

Occurs after a data-binding operation has finished.


public event DataGridViewBindingCompleteEventHandler DataBindingComplete


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.


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