Bahasa

DataGridBoolColumn.Edit Metode

Definisi

Menyiapkan sel untuk mengedit nilai.

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)

Parameter

source
CurrencyManager

Sel DataView yang diedit.

rowNum
Int32

Nomor baris sel yang diedit.

bounds
Rectangle

tempat Rectangle kontrol akan di-site.

readOnly
Boolean

true jika nilainya dibaca saja; jika tidak, false.

instantTextdisplayText
String

Teks yang akan ditampilkan dalam sel.

cellIsVisible
Boolean

true untuk memperlihatkan sel; jika tidak, false.

Keterangan

Tidak seperti implementasi umum metode ini (seperti yang dijelaskan di DataGridColumnStyle kelas), Edit metode tidak situs kontrol untuk mengedit nilai sel. Sebagai gantinya, kotak centang digambar saat Paint metode dipanggil.

Berlaku untuk