System.Windows.Forms.DataGridTextBoxColumn.Edit Method

Prepares a cell for editing.

Syntax

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

Parameters

source
The System.Windows.Forms.CurrencyManager of the System.Windows.Forms.DataGrid control the column belongs to.
rowNum
The row number in this column being edited.
bounds
The bounding 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.
cellIsVisible
A value indicating whether the cell is visible. true if the cell is visible; otherwise, false.

Remarks

The DataGridColumnStyle.Edit(CurrencyManager, int, System.Drawing.Rectangle, bool) sites a System.Windows.Forms.TextBox control on the grid at the location of the cell being edited. The method is called by the System.Windows.Forms.DataGrid class's DataGrid.BeginEdit(DataGridColumnStyle, int) method when an editing operation is about to begin.

Requirements

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