Gets or sets the editor to edit Cells.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public UITypeEditor Editor { get; set; }
Visual Basic
Public Property Editor As UITypeEditor
	Get
	Set
Visual C++
public:
property UITypeEditor^ Editor {
	UITypeEditor^ get ();
	void set (UITypeEditor^ value);
}
F#
member Editor : UITypeEditor with get, set

Property Value

Type: UITypeEditor
The editor.

Examples

 Copy imageCopy
public void CellEditExample(Grid grid)
{
    grid.Headers.Add(new Header());
    grid.Headers[0].Add(new Column("Price"));
    grid.Headers[0].Add(new Column("Quantity"));

    grid.Rows.Add(new Product());
    Row row = grid.Rows[0];

    //Set a new price programmatically
    Cell cell = row["Price"];

    //Edit the cell with an appropriate editor
    grid.Headers[0]["Price"].Editable = true;
    cell.Edit();
}

See Also