Prepares the cell for editing a value.
When overridden in a deriving class, prepares a cell for editing.
[Visual Basic] Overloads MustOverride Public Sub Edit(ListManager, Integer, Rectangle, Boolean, String, Boolean)
[C#] public abstract void Edit(ListManager, int, Rectangle, bool, String, bool);
[C++] public: virtual void Edit(ListManager*, int, Rectangle, bool, String, bool) = 0;
[JScript] public abstract function Edit(ListManager, int, Rectangle, Boolean, String, Boolean);
Prepares the cell for editing, passing the specified TBD, row number, Rectangle, argument indicating whether the column is read-only, and the text to display in the new control.
[Visual Basic] Overloads Overridable Public Sub Edit(ListManager, Integer, Rectangle, Boolean, String)
[C#] public virtual void Edit(ListManager, int, Rectangle, bool, String);
[C++] public: virtual void Edit(ListManager*, int, Rectangle, bool, String);
[JScript] public function Edit(ListManager, int, Rectangle, Boolean, String);
Prepares the cell for editing, passing a DataView, row number, Rectangle, and value indicating whether the column is read-only.
[Visual Basic] Overloads Overridable Public Sub Edit(ListManager, Integer, Rectangle, Boolean)
[C#] public virtual void Edit(ListManager, int, Rectangle, bool);
[C++] public: virtual void Edit(ListManager*, int, Rectangle, bool);
[JScript] public function Edit(ListManager, int, Rectangle, Boolean);
The following example shows a possible override of the Edit method.
Note This example shows how to use one of the overloaded versions of Edit. For other examples that may be available, see the individual overload topics.
[Visual Basic]
Overloads Overrides Sub OnEdit(ByVal source As Data.System.Data.DataView, _ ByVal rowNum As Long, ByVal bounds As UI.System.Drawing.Rectangle, _ ByVal readOnly As Boolean) Dim originalBounds As System.Drawing.Rectangle Set originalBounds = bounds ' Set a property determining if a hosted control is read only. ' The hosted control is named myControl. myControl.ReadOnly End Sub
DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace