System.Windows.Forms.DataGridColumnStyle.Edit Method

Prepares the cell for editing using the specified System.Windows.Forms.CurrencyManager, row number, and System.Drawing.Rectangle parameters.

Syntax

protected virtual void Edit (CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string displayText)

Parameters

source
The System.Windows.Forms.CurrencyManager for the System.Windows.Forms.DataGridColumnStyle.
rowNum
The row number in this column which is being edited.
bounds
The System.Drawing.Rectangle in which the control is to be sited.
readOnly
A value indicating whether the column is a read-only. true if the value is read-only; otherwise, false.
displayText
The text to display in the control.

Remarks

Typically, the DataGridColumnStyle.Edit(CurrencyManager, int, System.Drawing.Rectangle, bool) method sites a control onto the grid at the location of the cell being edited.

Requirements

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