Share via


DataGridBoolColumn.Edit Método

Definição

Prepara a célula para a edição de 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

O DataView da célula editada.

rowNum
Int32

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

bounds
Rectangle

O Rectangle em que o controle deve ser localizado.

readOnly
Boolean

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

instantTextdisplayText
String

O texto a ser exibido na célula.

cellIsVisible
Boolean

true para mostrar a célula, caso contrário, false.

Comentários

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

Aplica-se a