DataGridBoolColumn.Edit Método

Definição

Prepara a célula para editar um 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

A DataView da célula editada.

rowNum
Int32

O número da linha da célula editada.

bounds
Rectangle

O Rectangle local onde o controlo deve ser instalado.

readOnly
Boolean

true se o valor for apenas leitura; caso contrário, false.

instantTextdisplayText
String

O texto para mostrar na cela.

cellIsVisible
Boolean

true para mostrar à cela; caso contrário, false.

Observações

Ao contrário da implementação típica deste método (conforme descrito na DataGridColumnStyle classe), o Edit método não coloca um controlo para editar o valor da célula. Em vez disso, é desenhada uma caixa de seleção quando o Paint método é chamado.

Aplica-se a