Compartir a través de


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 modificada.

rowNum
Int32

Número de fila de la celda modificada.

bounds
Rectangle

Rectangledonde se va a situar el control.

readOnly
Boolean

Es true si el valor es de sólo lectura; en caso contrario, es false.

instantTextdisplayText
String

Texto que se va a mostrar en la celda.

cellIsVisible
Boolean

Es true para mostrar la celda; en caso contrario, es 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 sitio un control para editar el valor de celda. En su lugar, se dibuja una casilla cuando se llama al Paint método .

Se aplica a