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

注解

与) 类中所述 DataGridColumnStyle 此方法的典型实现 (不同,该方法 Edit 不会为编辑单元格值设置控件。 相反,调用方法时 Paint 会绘制一个复选框。

适用于