DataGridBoolColumn.Edit Método

Definición

Prepara la celda para editar un valor.

protected public:
 override void Edit(System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Rectangle bounds, bool readOnly, System::String ^ instantText, bool cellIsVisible);
protected public:
 override void Edit(System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Rectangle bounds, bool readOnly, System::String ^ displayText, bool cellIsVisible);
protected internal override void Edit(System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string instantText, bool cellIsVisible);
protected internal override void Edit(System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Rectangle bounds, bool readOnly, string displayText, bool cellIsVisible);
override this.Edit : System.Windows.Forms.CurrencyManager * int * System.Drawing.Rectangle * bool * string * bool -> unit
override this.Edit : System.Windows.Forms.CurrencyManager * int * System.Drawing.Rectangle * bool * string * bool -> unit
Protected Friend Overrides Sub Edit (source As CurrencyManager, rowNum As Integer, bounds As Rectangle, readOnly As Boolean, instantText As String, cellIsVisible As Boolean)
Protected Friend Overrides Sub Edit (source As CurrencyManager, rowNum As Integer, bounds As Rectangle, readOnly As Boolean, displayText As String, cellIsVisible As Boolean)

Parámetros

source
CurrencyManager

DataView de la celda editada.

rowNum
Int32

Número de fila de la celda editada.

bounds
Rectangle

en Rectangle el que se va a instalar el control.

readOnly
Boolean

true si el valor es de solo lectura; de lo contrario, false.

instantTextdisplayText
String

Texto que se va a mostrar en la celda.

cellIsVisible
Boolean

true para mostrar la celda; de lo contrario, false.

Comentarios

A diferencia de la implementación típica de este método (como se describe en la DataGridColumnStyle clase ), el Edit método no crea un control para editar el valor de la celda. En su lugar, se dibuja una casilla cuando se llama al Paint método .

Se aplica a