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

如果值为只读,则为 .

instantTextdisplayText
String

要显示在单元格中的文本。

cellIsVisible
Boolean

true 显示单元格;否则,为 false.

注解

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

适用于