DataGridBoolColumn.Edit Metoda

Definice

Připraví buňku na úpravu hodnoty.

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)

Parametry

source
CurrencyManager

Upravená DataView buňka.

rowNum
Int32

Číslo řádku upravené buňky.

bounds
Rectangle

Určuje Rectangle , ve kterém má být ovládací prvek sited.

readOnly
Boolean

truepokud je hodnota jen pro čtení; v opačném případě . false

instantTextdisplayText
String

Text, který se má zobrazit v buňce

cellIsVisible
Boolean

truek zobrazení buňky; v opačném případě . false

Poznámky

Na rozdíl od typické implementace této metody (jak je popsáno ve DataGridColumnStyle třídě), Edit metoda nenasadí ovládací prvek pro úpravu hodnoty buňky. Místo toho se při volání metody nakreslí Paint zaškrtávací políčko.

Platí pro