System.Windows.Forms.DataGridView.RowDividerDoubleClick Event

Occurs when the user double-clicks the divider between two rows.


public event DataGridViewRowDividerDoubleClickEventHandler RowDividerDoubleClick


You can use this event to customize the automatic sizing behavior that occurs when a user double-clicks a row divider.

The row DataGridViewColumn.DividerWidth property does not extend the area in which a user can double-click. If the height of a divider has been increased through the use of this property, this event occurs when the user double-clicks the boundary between the divider and the adjacent column.

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