Share via


DataGridBoolColumn.Edit 方法

定義

準備儲存格,以進行數值編輯作業。

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)

參數

source
CurrencyManager

所編輯儲存格的 DataView

rowNum
Int32

所編輯儲存格的資料列編號。

bounds
Rectangle

控制項位置所在的 Rectangle

readOnly
Boolean

如果該值是唯讀的則為 true,否則為 false

instantTextdisplayText
String

儲存格中要顯示的文字。

cellIsVisible
Boolean

若要顯示儲存格則為 true,否則為 false

備註

不同于這個方法的一般實作 (,如 類別) 中所述 DataGridColumnStyleEdit 此方法不會將控制項放在編輯儲存格值的控制項。 相反地,呼叫 方法時 Paint 會繪製核取方塊。

適用於