IDataGridViewEditingControl.PrepareEditingControlForEdit Method (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Prepares the currently selected cell for editing.

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

void PrepareEditingControlForEdit(
	bool selectAll


Type: System.Boolean

true to select all of the cell's content; otherwise, false.

The purpose of this method is to prepare the control and its contents for editing. For example, you might want to put the insertion point at the end of the contents, or change how the contents are aligned.

.NET Framework
Available since 2.0
Return to top