Export (0) Print
Expand All

DataGridViewTextBoxCell.InitializeEditingControl Method

Attaches and initializes the hosted editing control.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override void InitializeEditingControl(
	int rowIndex,
	Object initialFormattedValue,
	DataGridViewCellStyle dataGridViewCellStyle
)

Parameters

rowIndex
Type: System.Int32

The index of the row being edited.

initialFormattedValue
Type: System.Object

The initial value to be displayed in the control.

dataGridViewCellStyle
Type: System.Windows.Forms.DataGridViewCellStyle

A cell style that is used to determine the appearance of the hosted control.

The InitializeEditingControl method initializes the hosted editing control as described in the base DataGridViewCell.InitializeEditingControl method. For every invocation, this method also sets the following visual attributes of the editing control:

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft