System.Windows.Forms.DataGridBoolColumn.Edit Method

Prepares the cell for editing a value.

Syntax

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

Parameters

source
The System.Data.DataView of the edited cell.
rowNum
The row number of the edited cell.
bounds
The System.Drawing.Rectangle in which the control is to be sited.
readOnly
true if the value is read only; otherwise, false.
displayText
The text to display in the cell.
cellIsVisible
true to show the cell; otherwise, false.

Remarks

Unlike the typical implementation of this method (as described in the System.Windows.Forms.DataGridColumnStyle class), the DataGridBoolColumn.Edit(CurrencyManager, int, System.Drawing.Rectangle, bool, string, bool) method does not site a control for editing the cell value. Instead, a check box is drawn when the DataGridBoolColumn.Paint(System.Drawing.Graphics, System.Drawing.Rectangle, CurrencyManager, int) method is called.

Requirements

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