Condividi tramite


DataGridBoolColumn.Edit Metodo

Definizione

Prepara la cella per la modifica di un valore.

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)

Parametri

source
CurrencyManager

Classe DataView della cella modificata.

rowNum
Int32

Numero di righe della cella modificata.

bounds
Rectangle

Oggetto Rectangle in cui deve essere situato il controllo.

readOnly
Boolean

true se il valore è in sola lettura; in caso contrario, false.

instantTextdisplayText
String

Testo da visualizzare nella cella.

cellIsVisible
Boolean

true per visualizzare la cella; in caso contrario, false.

Commenti

A differenza dell'implementazione tipica di questo metodo (come descritto nella DataGridColumnStyle classe), il Edit metodo non trova un controllo per modificare il valore della cella. Una casella di controllo viene invece disegnata quando viene chiamato il Paint metodo.

Si applica a