Gets or sets the editor that is used to edit cell data.
[Visual Basic]
Public Property Editor As Control
[C#]
public Control Editor {get;set;}
[Delphi]
public property Editor: Control read get_Editor write set_Editor;
Example
The following code uses the Editor property to assign the custom editor to edit cell data:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Create a custom editor.
Dim editor as New C1NumericEdit()
editor.BorderStyle = BorderStyle.None
' Assign the custom editor to the grid.
Me.C1TrueDBGrid1.Columns(0).Editor = editor
End Sub
· C#
private void Form1_Load(object sender, System.EventArgs e)
{
// Create a custom editor.
C1NumericEdit editor = new C1NumericEdit();
editor.BorderStyle = BorderStyle.None;
// Assign the custom editor to the grid.
this.c1TrueDBGrid1.Columns[0].Editor = editor;
}
· Delphi
procedure TWinForm.TwinForm1_Load(sender: System.Object; e: System.EventArgs);
var editor: C1NumericEdit;
begin
// Create a custom editor.
editor := C1NumericEdit.Create;
editor.BorderStyle := BorderStyle.None;
// Assign the custom editor to the grid.
Self.C1TrueDBGrid1.Columns[0].Editor := editor;
end;
See Also
C1DataColumn Class | C1DataColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |