DataGridViewTextBoxCell::InitializeEditingControl Method (Int32, Object^, DataGridViewCellStyle^)
.NET Framework (current version)
Attaches and initializes the hosted editing control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: virtual void InitializeEditingControl( int rowIndex, Object^ initialFormattedValue, DataGridViewCellStyle^ dataGridViewCellStyle ) override
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:
The BorderStyle property is set to None.
The Multiline and AcceptsReturn properties are set to true.
The Text property is set to the initialFormattedValue parameter.
.NET Framework
Available since 2.0
Available since 2.0
Show: