DVXP TEdit.NET 3.0

TableEditor.CreateEditControl Event

Can be used to customize the appearance of edit controls. Can also be used to replace a standard edit control by a self-created control.

[Visual Basic]
Public Event CreateEditControl As CreateEditControlEventHandler
[C#]
public event CreateEditControlEventHandler CreateEditControl;

Event Data

The event handler receives an argument of type CreateEditControlEventArgs containing data related to this event. The following CreateEditControlEventArgs properties provide information specific to this event.

PropertyDescription
Col The column of the row that the control is being created
EditControl Contains a reference to the control that the table editor has created by default. You can replace this reference by a self created control.
Row The row that the control is being created for

Remarks

Note that the ViewState of the TableEditor will get much larger than usual when you add a custom edit control that has its EnableViewState property set to true (the default value). This is caused by the viewstate of the DataGrid that contains the edit control. To prevent this, remember to set EnableViewState of self-created controls to false if possible, or else consider setting the EditInGrid property to false. This will also prevent this issue because then the edit control is not shown inside the DataGrid.

See Also

TableEditor Class | DVXP.DXTableEditor Namespace