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.
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.
| Property | Description |
|---|---|
| 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 |
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.
TableEditor Class | DVXP.DXTableEditor Namespace