DataGridBoolColumn.Edit Method (CurrencyManager, Int32, Rectangle, Boolean, String, Boolean)

 
Use BaseTrue

Prepares the cell for editing a value.

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

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

Parameters

source
Type: System.Windows.Forms.CurrencyManager

The DataView of the edited cell.

rowNum
Type: System.Int32

The row number of the edited cell.

bounds
Type: System.Drawing.Rectangle

The Rectangle in which the control is to be sited.

readOnly
Type: System.Boolean

true if the value is read only; otherwise, false.

displayText
Type: System.String

The text to display in the cell.

cellIsVisible
Type: System.Boolean

true to show the cell; otherwise, false.

Unlike the typical implementation of this method (as described in the DataGridColumnStyle class), the Edit method does not site a control for editing the cell value. Instead, a check box is drawn when the Paint method is called.

.NET Framework
Available since 1.1
Return to top
Show: