System.Windows.Forms.DataGridColumnStyle.EnterNullValue Method

Enters a DBNull.Value into the column.

Syntax

protected virtual void EnterNullValue ()

Remarks

This method is called when the user presses ALT+0 to allow a column to enter the appropriate null value. For example, when called on a System.Windows.Forms.DataGridTextBoxColumn, the appropriate DataGridColumnStyle.NullText value is inserted into the column.

The DataGridColumnStyle.EnterNullValue has no default behavior. When inheriting from System.Windows.Forms.DataGridColumnStyle, override the method to enter null in a column.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0